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

Re: [5.8.12] Proposal for changing UNIVERSAL semantics

Thread Previous | Thread Next
Michael Jacob
November 4, 2003 06:55
Re: [5.8.12] Proposal for changing UNIVERSAL semantics
Message ID:
On 2003-11-04 15:27:26 Tels <> was overheard saying:

>[ Denglish Alert!]
>An einem sonnigen Herbstdienstag, Michael schrieb:
Sonne? Wo? ;-)

>So, I could live with can() only returning true.

Oops, somehow my proposal could be misunderstood, so:

I did not propose to change the return value of can(). Nor the parameters. Only the logic of also looking in UNIVERSAL after the normal @ISA search has failed.

On a freshly installed Perl 5.12.0 (without "use UNIVERSAL") the only difference to Perl 5.8.0 would be that isa($x, 'can'), isa($x, 'isa') and isa($x, 'VERSION') would return undef for every $x ne 'UNIVERSAL'.

Gratuitous Advertisements:

This email was brought to you by You've Got Post!


Publish your company's press releases for just $5.99 per month (unlimited access), visit

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