Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2012 02:33
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 anonymous/3063969 to your computer and use it in GitHub Desktop.
Save anonymous/3063969 to your computer and use it in GitHub Desktop.
class MyType {
method postcircumfix:<( )>(MyType:U: $value) { "coerced $value"; }
}
say "MyType(3) = {MyType(3)}";
@timo
Copy link

timo commented Jan 17, 2014

postcircumfixes are not methods any more, but you may want to implement get_pos in MyType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment