Var keyword

BlitzMax Forums/BlitzMax Beginners Area/Var keyword

tonyg(Posted 2005) [#1]
This worked at 1.10...
Local a:Int=15
Local b:Int Ptr=Int Ptr(a)
Print Var b

but now returns 'Compile Error. Internal error'.
Need some input whether it's a bug or I was always doing something wrong but getting away with it.
<edit> Seems I have to change var b to int(b)


Azathoth(Posted 2005) [#2]
Doesn't seem to work anymore, you can use b[0] instead. Anyway you realise you're using 15 as an address?


tonyg(Posted 2005) [#3]
Changed my code to use b[0] and it works OK.
This is a silly example just to get the error.
Thanks