Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -0,0 +1,27 @@
|
|||
class point {
|
||||
single x, y
|
||||
class:
|
||||
module point (.x, .y) {}
|
||||
}
|
||||
function global add2(k as point) {
|
||||
k.x+=2
|
||||
=k
|
||||
}
|
||||
module check {
|
||||
a=point(2.343, 4.556)
|
||||
print a.x, a.y
|
||||
alfa(@add1(a))
|
||||
a=add2(a)
|
||||
alfa(a)
|
||||
print a is type point = true
|
||||
|
||||
sub alfa(k as point)
|
||||
print k.x
|
||||
end sub
|
||||
|
||||
function add1(k as point)
|
||||
k.x+=1
|
||||
=k
|
||||
end function
|
||||
}
|
||||
check
|
||||
Loading…
Add table
Add a link
Reference in a new issue