Created
July 7, 2012 02:33
-
-
Save anonymous/3063969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyType { | |
method postcircumfix:<( )>(MyType:U: $value) { "coerced $value"; } | |
} | |
say "MyType(3) = {MyType(3)}"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
postcircumfixes are not methods any more, but you may want to implement get_pos in MyType.