Skip to content

Instantly share code, notes, and snippets.

@masak
Created August 25, 2009 21:26
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 masak/175042 to your computer and use it in GitHub Desktop.
Save masak/175042 to your computer and use it in GitHub Desktop.
$ perl6 -e 'class A { has $.foo }; class B {}; my $x = A.bless(A.CREATE,
foo => "OH HAI"); $x = B.bless($x); say $x.foo; say $x.WHAT'
OH HAI
A()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment