class and the toString() method
This code is not working as expected.
Function 'toString ()' - returns an object instead of a string.
Test = class
constructor = function()
this.value = 5
end
toString = function()
return " This is the value of the variable value " + value.toString()
end
toStr = function()
return " This is the value of the variable value " + value.toString()
end
end
init = function()
test = new Test()
print( " call test.toString() result >> "+test.toString() )
print( " call test.toStr() result >> "+test.toStr() )
end
update = function()
end
draw = function()
end