Anonymous user
Singleton: Difference between revisions
Slate implementation
(→{{header|Tcl}}: Tighten, comment) |
(Slate implementation) |
||
Line 414:
b = MySingleton.instance
puts a.equal?(b) # outputs "true"</lang>
=={{header|Slate}}==
Clones of Oddball themselves may not be cloned. Methods and slots may still be defined on them:
<lang slate>define: #Singleton &builder: [Oddball clone]</lang>
=={{header|Tcl}}==
|