repo.or.cz
/
minnow.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit
[minnow.git]
/
samples
/
pass_array3.mno
blob
8478a3c64873331fc2a624415fd9146a5da298df
1
class Data
2
var int x
3
end
4
5
actor Handler
6
action handle(Data[] input)
7
var Data d1 = input[0]
8
var Data d2 = input[1]
9
puti(d1.x)
10
puti(d2.x)
11
12
exit(0)
13
end
14
end
15
16
action main()
17
spawn Handler h
18
19
var Data[] arr[2]
20
new Data d1
21
new Data d2
22
d1.x = 3
23
d2.x = 4
24
25
arr[0] = d1
26
arr[1] = d2
27
28
h::handle(arr)
29
30
end