File: uaarray.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (5)
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
# uaarray.kbs - code that caused access violation errors 
# fixed 2008-08-29 jmr

# example one - list assigning a non exist variable
# both with float and string
a = {1, 2, 3, 4}
b$ = {"foo", "bar", "foobar"}

# example 2 - list assigning a non array variable
g = 99
g = {1, 2, 3, 4}
#
h$ = "hi mom"
h$ = {"foo", "bar", "foobar"}

# sample 3 - index assignment with non exist variable
c[88] = 9
d$[22] = "foo"

# sample 4 - index assign of a non array variable
e = 7
e[3] = 9
#
f$ = "bar"
f$[7] = "crap"