in reply to Re^2: Detecting an imported function
in thread Detecting an imported function
From the role's package. The current specification, as I understand it, is that anything a role can do, the class doing the role can do.
Is there any chance a role might import a function (even as a constant) and have it exported?
If Role->can('foo'), then Class->does('Role') implies Class->can('foo') for all foo in Role. If this isn't the spec, then I can provide a mechanism in Perl6::Roles that will account for that. Let say you define a "@ROLE_METH" or somesuch. But, the current P6 spec, as I understand it, says that the class will get everything.
There is some discussion on p6l about whether or not the role will be able to reserve methods that are labelled private/protected/other, but, AFAIK, @Larry hasn't made a decision one way or the other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Detecting an imported function
by Ovid (Cardinal) on Nov 17, 2005 at 16:27 UTC | |
by dragonchild (Archbishop) on Nov 17, 2005 at 16:56 UTC | |
by Ovid (Cardinal) on Nov 17, 2005 at 17:30 UTC | |
by dragonchild (Archbishop) on Nov 17, 2005 at 18:06 UTC | |
by Ovid (Cardinal) on Nov 17, 2005 at 18:17 UTC |