Singleton: Difference between revisions

No change in size ,  6 years ago
mNo edit summary
Line 1,640:
 
=={{header|Perl 6}}==
<lang Perl6perl6>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.
10,327

edits