Shop OBEX P1 Docs P2 Docs Learn Events
spin2 compiler error ? — Parallax Forums

spin2 compiler error ?

Object array setter compile but geter do not compile

File 1 obj_x
VAR
x

PUB setX ( v )
x := v

PUB getX ( ) : v
v := X

File 2 test use of obj_x
OBJ
o : "obj_x"
o1[2] : "obj_x"

PUB go () | x
o.setX(55) ' Compiled ok
x := o.getX() ' Compiled ok

o1[0].setX(55) ' Compiled ok
x := o1[0].getX() ' Compiled with Error
' ^
' - Error: Expected "."

Is that a compiler Prolem ?

Comments

Sign In or Register to comment.