Created
March 29, 2016 23:36
-
-
Save zoffixznet/6b5e4bdcfd45aa4879d8099ac2ac6c70 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
Int.^add_method('x', -> $class, $v { say $v }); | |
constant A := Metamodel::ClassHOW.new_type( name => 'A' ); | |
A.^add_method('x', -> $class, $v { say $v }); | |
#A.^compose; | |
A.x: 'A class'; | |
Int.x: 'Int class'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment