Anonymous user
Singleton: Difference between revisions
added Io. someone should check this though. it doesn't strictly satisfy the requirements.
m (→Thread-safe) |
(added Io. someone should check this though. it doesn't strictly satisfy the requirements.) |
||
Line 265:
# ...
}
=={{header|Io}}==
Io does not have globals. But it is easy to make singleton objects:
Singleton := Object clone
Singleton clone = Singleton
=={{header|Objective-C}}==
|