New pointer syntax

BlitzMax Forums/BlitzMax Programming/New pointer syntax

What's the equivalent code using the new pointer syntax?

Local centre_ptr:Int Ptr

centre_ptr = centre_sqr                   ' pointer to centre square array

For Local square:Int = 1 To 64

  nearest_sqr = Var(centre_ptr)
  x = Var(centre_ptr+1) + board_x ; y = Var(centre_ptr+2) + board_y
                                                      
  ' etc

  centre_ptr :+ 3

Next