Jon Lang wrote:
I believe that the official word is to say:

  class PracticalJoke does Bomb does Spouse {
    method fuse () { Bomb::fuse }
    method explode () { Spouse::explode }
This way won't work, because:

* It's doing a sub call to something that's a method
* The lookup won't work unless the method has "our" (package) scope *
* Even in that case, the invocant isn't being passed so you'll get a "wrong number of parameters" error



* I somewhat suspect calling a routine in a role using the role name as a namespace identifier should be banned anyway, since we'd have no clue what to do with references to $?CLASS, which is meant to be generic.

Reply via email to