develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [PATCH pod/perlfunc.pod] ref can return false on references

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
October 6, 2003 13:39
Subject:
Re: [PATCH pod/perlfunc.pod] ref can return false on references
Message ID:
20031006222620.64bbeff1.rgarciasuarez@free.fr
Abigail wrote:
> 
> If someone writes a patch to disallow blessing into the class '0',
> I wouldn't oppose it (and I guess the case is edgy enough it doesn't
> need a deprecation cycle), but until then, I think the documentation
> should be correct. And I'd think that 5.8.2 should just have the doc
> patch, not the bless patch to be.

What about making C<ref bless [], 0> return "main::0" ? It's a true value
and it's a correct package name. And with that the documentation can
be restored to its previous state if you like.

(although I prefer stating clearly that ref() returns an empty string;
I don't know why, I thought that ref(undef) was undefined.)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About