On Jul 7, 2009, at 08:13 , Jonathan Worthington wrote:
Brandon S. Allbery KF8NH wrote:
I was trying to figure out how to do it with nextsame, but that's not looking very simple.

On the other hand, if they were multis then they get added to the multi candidate list and therefore you can nextsame into them. Again from Rakudo:

> role R { multi method b() { say "lol in role" } }
> class C does R { multi method b() { say "oh hai in class"; nextsame } }
> C.new.b
oh hai in class
lol in role

But even then that's only half of it; we want a() from one role and b() from another, when both roles do a() and b(). Looks painful to me.

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