Skip to content

Instantly share code, notes, and snippets.

@funrep

funrep/foo.p6 Secret

Created January 10, 2016 15:41
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 funrep/bf18880254e4355ccae2 to your computer and use it in GitHub Desktop.
Save funrep/bf18880254e4355ccae2 to your computer and use it in GitHub Desktop.
> class IAmClass2 { has $!hidden; has $.public; method puthide () { say $!hidden } }
> $class = IAmClass2.new(hidden => "foo", public => "bar")
IAmClass2.new(public => "bar")
> $class.puthide
(Any)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment