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

Re: [5.8.12] Proposal for changing UNIVERSAL semantics

Thread Previous | Thread Next
From:
Michael Jacob
Date:
November 4, 2003 06:55
Subject:
Re: [5.8.12] Proposal for changing UNIVERSAL semantics
Message ID:
GMail.1067957332.433802475.16857068153@smtp.youvegotpost.com
On 2003-11-04 15:27:26 Tels <perl_dummy@bloodgate.com> was overheard saying:
---------------------------------------------------

>[youvegotpost.de? 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'.

Michael 
--
Gratuitous Advertisements:

This email was brought to you by You've Got Post!
http://www.youvegotpost.com

--

Publish your company's press releases for just $5.99 per month (unlimited access), visit http://www.officialspin.com


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