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

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

Thread Next
From:
Mark Stosberg
Date:
August 21, 2006 20:29
Subject:
clarify: does "Dog is Mammal" load Mammal for you?
Message ID:
ecdtm5$1lp$1@sea.gmane.org
In S12, we see a number examples of:

   class Dog is Mammal
   http://dev.perl.org/perl6/doc/design/syn/S12.html

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.

    Mark


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