develooper Front page | perl.perl6.language | Postings from August 2006

clarify: does "Dog is Mammal" load Mammal for you?

Thread Next
Mark Stosberg
August 21, 2006 20:29
clarify: does "Dog is Mammal" load Mammal for you?
Message ID:
In S12, we see a number examples of:

   class Dog is Mammal

However, it's not clear if it is necessary to preload Mammal for Dog
to function properly here, or what that syntax would be.

Testing with current version of pugs, this doesn't happen. Adding
"use Mammal" before this syntax seems to fix it, but doesn't seem like
it should be necessary, especially since "use Mammal" has traditionally 
implied as "has-a" relationship.


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