Error with Function Var
BlitzMax Forums/BlitzMax Beginners Area/Error with Function Var
| ||
hi, i tried to work with pointers, but i saw, that even the example didn't work... >Global i:Int=10 >Global p:Int Ptr=Varptr i >Global k:Int=Var test >Building untitled1 >Compiling:untitled1.bmx >Compile Error: Expecting expression but encountered Var >[C:/Programme/BlitzMax/tmp/untitled1.bmx;3;14] >Build Error: failed to compile >C:/Programme/BlitzMax/tmp/untitled1.bmx >Process complete i don't really think, that this error is my fault... i use BlitzMax version 1.18 reinstallation and syncmods => today, the 15th April^^ |
| ||
The docs probably haven't been updated (take a look at the release notes). You can no longer use 'Var' to de-reference a pointer... Local i:Int = 10 Local p:Int Ptr = Varptr i Local k:Int = p[0]'Var p Print k |
| ||
ah, it works thank you :) |