Skip to content

Instantly share code, notes, and snippets.

@bschmalhofer
Created June 16, 2009 16:46
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 bschmalhofer/130769 to your computer and use it in GitHub Desktop.
Save bschmalhofer/130769 to your computer and use it in GitHub Desktop.
bernhard@heist:~/devel/Parrot/svn/parrot/languages/rakudo$ cat class.p6
class Foo {
has $.member is rw = 'a member of Foo';
method echo_member() {
say $?CLASS;
say $.member;
}
}
my Foo $foo .= new();
$foo.echo_member();
bernhard@heist:~/devel/Parrot/svn/parrot/languages/rakudo$ ./perl6 class.p6
Symbol '$?CLASS' not predeclared in echo_member (class.p6:6)
in Main (src/gen_setting.pm:3225)
bernhard@heist:~/devel/Parrot/svn/parrot/languages/rakudo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment