March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class Singleton {
|
||||
# We create a lexical variable in the class block that holds our single instance.
|
||||
my Singleton $instance = Singleton.bless(*); # You can add initialization arguments here.
|
||||
my Singleton $instance = Singleton.bless; # You can add initialization arguments here.
|
||||
method new {!!!} # Singleton.new dies.
|
||||
method instance { $instance; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue