File: test_brain.pro

package info (click to toggle)
gnudatalanguage 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,832 kB
  • sloc: cpp: 198,435; ansic: 47,740; sh: 691; python: 474; makefile: 149; xml: 69; f90: 28
file content (36 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pro test1, x, y
help, x, y
end

function test2, x
return,x
end

function test3, x
return,x[0].p[0]
end

pro test4, x, y
  x[2] = 10.
  print, y
end

pro test_brain
a = indgen(5)
test1, a, a

a = indgen(5)
(test2(a))[0] = -2
print, a

a = {stest,tag:0}
(test2(a)).tag = 5
print, a

a = indgen(5)
print, a
test4, a, a
end