Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A couple of potential bugs
#1
1) Given the following code:
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))
I get:
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 should have been:
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 should have been:
Code:
vars[var]

And again, NaaLaa is so cool!  You have done an amazing job!
Reply


Messages In This Thread
A couple of potential bugs - by eddavis - 11-01-2022, 05:11 PM
RE: A couple of potential bugs - by johnno1956 - 11-01-2022, 06:49 PM
RE: A couple of potential bugs - by eddavis - 11-01-2022, 07:02 PM
RE: A couple of potential bugs - by Marcus - 11-03-2022, 05:48 AM
RE: A couple of potential bugs - by Marcus - 11-05-2022, 04:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)