On Jul 7, 2009, at 07:34 , Jonathan Worthington wrote:
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 was trying to figure out how to do it with nextsame, but that's not looking very simple.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to