Singleton: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|Perl 6}}: fix markup) |
|||
Line 723: | Line 723: | ||
</lang> |
</lang> |
||
Normal singleton |
Normal singleton |
||
<lang elena>class |
<lang elena>class Singleton |
||
{ |
{ |
||
object theField. |
object theField. |
||
Line 730: | Line 730: | ||
} |
} |
||
static singleton = |
static singleton = Singleton new.</lang> |
||
=={{header|Erlang}}== |
=={{header|Erlang}}== |