|
|
Choosing A Webhost: |
Re: Generic classes.: msg#00213lang.perl.perl6.language
On Mon, Aug 15, 2005 at 11:07:51AM -0700, Larry Wall wrote: > Sure, except that you're not really inheriting from a role here. > You're really inheriting from an anonymous class of the same name. :-) Hmm, "Anonymous class with the name 'Array of Any'" sounds like an oxymoron. Also consider: role Foo {}; my Foo $x .= new; my Foo $y .= new; ref($x) eqv ref($y); # bool::true, surely? If all the anonymous classes are actually the same class underneath, and have the name that's identical to the role name, then where do their "anonymousness" manifest? Can we simply say "Foo" is a role can double as a class -- i.e. you can choose to "is" it or "does" it? Then it follows that "Array of Any" is a class, and "Array of Int" is also a class, etc. Thanks, /Autrijus/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Type inferencing for Perl5, Gary Jackson |
|---|---|
| Next by Date: | Re: DBI v2 - The Plan and How You Can Help, Dean Arnold |
| Previous by Thread: | Re: Generic classes., Larry Wall |
| Next by Thread: | GC API from discussion, David Formosa \(aka ? the Platypus\) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |