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
8
Task/Compound-data-type/Lingo/compound-data-type-1.lingo
Normal file
8
Task/Compound-data-type/Lingo/compound-data-type-1.lingo
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- parent script "MyPoint"
|
||||
property x
|
||||
property y
|
||||
on new (me, px, py)
|
||||
me.x = px
|
||||
me.y = py
|
||||
return me
|
||||
end
|
||||
3
Task/Compound-data-type/Lingo/compound-data-type-2.lingo
Normal file
3
Task/Compound-data-type/Lingo/compound-data-type-2.lingo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
p = script("MyPoint").new(23, 42)
|
||||
put p.x, p.y
|
||||
-- 23 42
|
||||
4
Task/Compound-data-type/Lingo/compound-data-type-3.lingo
Normal file
4
Task/Compound-data-type/Lingo/compound-data-type-3.lingo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- in some movie script
|
||||
on MyPoint (x, y)
|
||||
return script("MyPoint").new(x, y)
|
||||
end
|
||||
3
Task/Compound-data-type/Lingo/compound-data-type-4.lingo
Normal file
3
Task/Compound-data-type/Lingo/compound-data-type-4.lingo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
p = MyPoint(23, 42)
|
||||
put p.x, p.y
|
||||
-- 23 42
|
||||
Loading…
Add table
Add a link
Reference in a new issue