Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
22
Task/Singleton/Lingo/singleton.lingo
Normal file
22
Task/Singleton/Lingo/singleton.lingo
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
-- parent script "SingletonDemo"
|
||||
|
||||
property _instance
|
||||
property _someProperty
|
||||
|
||||
----------------------------------------
|
||||
-- @constructor
|
||||
----------------------------------------
|
||||
on new (me)
|
||||
if not voidP(me.script._instance) then return me.script._instance
|
||||
me.script._instance = me
|
||||
me._someProperty = 0
|
||||
return me
|
||||
end
|
||||
|
||||
----------------------------------------
|
||||
-- sample method
|
||||
----------------------------------------
|
||||
on someMethod (me, x)
|
||||
me._someProperty = me._someProperty + x
|
||||
return me._someProperty
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue