Created
June 25, 2013 01:42
-
-
Save samuraisam/5855270 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
our sub EXPORT(*@args) { | |
my %ret; | |
my $mod = Metamodel::ModuleHOW.new_type('PB'); | |
my $typ := Metamodel::ClassHOW.new_type('PB::Hello'); | |
$typ.HOW.compose($typ); | |
$mod.WHAT{'&Hello'} = $typ; # doesn't work | |
$mod.HOW.compose($mod); | |
# EXPORT_SYMBOL('&PB::Hello', [<ALL DEFAULT>], $typ); # doesn't work either. | |
return {'&PB' => $mod}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment