Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Singleton/Eiffel/singleton-1.e
Normal file
7
Task/Singleton/Eiffel/singleton-1.e
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class
|
||||
SINGLETON
|
||||
create {SINGLETON_ACCESS}
|
||||
default_create
|
||||
feature
|
||||
-- singleton features go here
|
||||
end
|
||||
10
Task/Singleton/Eiffel/singleton-2.e
Normal file
10
Task/Singleton/Eiffel/singleton-2.e
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
frozen class
|
||||
SINGLETON_ACCESS
|
||||
feature
|
||||
singleton: SINGLETON
|
||||
once ("PROCESS")
|
||||
create Result
|
||||
ensure
|
||||
Result /= Void
|
||||
end
|
||||
end
|
||||
3
Task/Singleton/Eiffel/singleton-3.e
Normal file
3
Task/Singleton/Eiffel/singleton-3.e
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
s: SINGLETON -- declaration somewhere
|
||||
|
||||
s := (create{SINGLETON_ACCESS}).singleton -- in some routine
|
||||
Loading…
Add table
Add a link
Reference in a new issue