11-01-2022, 05:11 PM
1) Given the following code:
I get:
I do not thank that is correct.
2) The following code did not give syntax error - but it did not work - where atarry is defined as: atarry = []
Code should have been:
3) The following code did not give a syntax error, but crashes with:
Code should have been:
And again, NaaLaa is so cool! You have done an amazing job!
Code:
s = "abcdef"
wln("s is: '" + s + "' - I am expecting to see 'f': " + right(s, 1))
wln("s is: '" + s + "' - I am expecting to see 'ef': " + right(s, 2))
wln("s is: '" + s + "' - I am expecting to see 'def': " + right(s, 3))
wln("s is: '" + s + "' - I am expecting to see 'cdef': " + right(s, 4))
wln("s is: '" + s + "' - I am expecting to see 'bcdef': " + right(s, 5))
Quote:s is: 'abcdef' - I am expecting to see 'f': bcdef
s is: 'abcdef' - I am expecting to see 'ef': cdef
s is: 'abcdef' - I am expecting to see 'def': def
s is: 'abcdef' - I am expecting to see 'cdef': ef
s is: 'abcdef' - I am expecting to see 'bcdef': f
I do not thank that is correct.
2) The following code did not give syntax error - but it did not work - where atarry is defined as: atarry = []
Code:
elseif tok = "@" then; nexttok(); n = atarry(parenexpr())
Code:
n = atarry[parenexpr()]
3) The following code did not give a syntax error, but crashes with:
Code:
(renv) bugs.n7:24: runtime error: Register is not a label (BC_CALL_R)
Code:
vars = []
var = 19
wln("*** " + chr(var + asc("a")) + " = " + vars(var))
Code:
vars[var]
And again, NaaLaa is so cool! You have done an amazing job!