On Mon, 21 Aug 2006, Mark Stosberg wrote:
> 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

If "is Mammal" were to cause an implicit "use Mammal", then I would expect 
this to happen only conditionally, such as if no "Mammal" has yet been 
declared in some already used (or the current) file (it may be declared in 
a file not named "Mammal".  Even then, I don't know if this implicit 'use' 
action would be a good idea, as it may be a source of bugs. -- Darren Duncan

Reply via email to