develooper Front page | perl.perl5.porters | Postings from August 2016

Re: Internals:: undocumented

Thread Previous | Thread Next
Leon Timmermans
August 6, 2016 14:53
Re: Internals:: undocumented
Message ID:
On Sat, Aug 6, 2016 at 3:39 PM, Tony Cook <> wrote:

> On Sat, Aug 06, 2016 at 09:05:23AM -0400, James E Keenan wrote:
> > What is Internals?
> Internals is deliberately undocumented, unsupported.
> dist/ and cpan/ shouldn't use it.
> Tony

Quite frankly, I believe adding two simple functions in Scalar::Utils would
solve most of this problem: "get the refcount" and "make the variable
readonly". Conceptually they're both fairly sane and easy to explain
operations and apparently responsible for about 95% of all use-cases of
Internals::. The other 5% is stuff like making a readonly variable writable
(Hash::Util and a few CPAN modules) or modifying a refcount (I hope no one
is doing this), which both fail the sanity check IMO.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About