File: test_brain.pro

package info (click to toggle)
gnudatalanguage 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,228 kB
  • ctags: 11,455
  • sloc: cpp: 143,352; makefile: 426; sh: 103; ansic: 44; awk: 18; python: 6
file content (36 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (10)
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