Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created November 6, 2010 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/665650 to your computer and use it in GitHub Desktop.
Save tadzik/665650 to your computer and use it in GitHub Desktop.
┌─[tadzik@yavin4]─[~]
└─[%]─> perl6
> role something {}; our multi trait_mod:<is>(something $trait, $block, $arg) { .WHAT.say for $trait, $block, $arg }
trait_mod:<is>
> sub foo ($a) is something('foobar') { say "I has $a" }
No applicable candidates found to dispatch to for 'trait_mod:<is>'. Available candidates are:
:(something $trait, Any $block, Any $arg)
:(Mu $child, Role $r)
:(Routine $r, Any :default($default)!)
:(Code $block, Any $arg?, Any :export($export)!)
:(Mu $child, Mu $parent)
:(Mu $type where ({ ... }), Any :rw($rw)!)
:(Mu $type where ({ ... }), Any :hidden($hidden)!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment