Singleton: Difference between revisions
Content added Content deleted
m (→Thread-safe) |
(added Io. someone should check this though. it doesn't strictly satisfy the requirements.) |
||
Line 265: | 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}}== |
=={{header|Objective-C}}== |