Menu

#624 Arrays with LANG "QB" don't order rows like in QB

open
nobody
None
compiler
2012-11-25
2012-09-25
Otter
No

Made it on FB 0.23.

The QB dialect does not store arrays in the same row order, like it's said in the manual. This is important in graphic multidimensional arrays.
Recently launched a program, that goes fine in Qbasic 1.0 and Pds 7.1. But in Fb,

DIM Z(100, 10) AS INTEGER
like 100 for graphics and 10 for animation frames,

PUT (X, Y), Z(0, frame)
PUT-s only small chunks like they are 10 elements' pieces. And sometimes even seeds the screen from the placepoint with garbage.

Relocating all references to PUT Z(frame, 0) made it right.

Discussion

  • dkl

    dkl - 2012-11-25

    It'd be nice to have the same order as QB under fbc -lang qb, but I can't say how easy it'd be to implement this.

     
  • dkl

    dkl - 2012-11-25
    • component: --> compiler
     

Log in to post a comment.

MongoDB Logo MongoDB