I was pulling my hair out and finally did this test and saw that there is a problem with floats in classes.
I will make one for all variable types to test next. But wanted to report this for now.
I commented out the floats code so it would compile and run.
So run first then uncomment out the float parts to see the error, thanks.
'Error when using floats
class v3
private
' x as float
y as double
z as long
public
'Setters
' method setx(v as float)
' this.x = v
' end method
method sety(v as double)
this.y = v
end method
method setz(v as long)
this.z = v
end method
'Getters
' method getx() as float
' method = this.x
' end method
method gety() as double
method = this.y
end method
method getz() as long
method = this.z
end method
end class
'Program Code
dim v as v3
'v.setx 42.24
v.sety 89.5
v.setz 7
'print `x: ` str v.getx
print `y: ` str v.gety
print `z: ` str v.getz
.