Jump to content

Singleton: Difference between revisions

added Io. someone should check this though. it doesn't strictly satisfy the requirements.
(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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.