[futurebasic] Why this error?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2001 : Group Archive : Group : All Groups

From: Charlie Dickman <3tothe4th@...>
Date: Sat, 28 Jul 2001 21:38:31 -0400
I'm trying (sigh) to convert a program from FBII to FB^3.

The program contains the following declarations...

_maxFace     = 8                                  '8 faces
_maxEdge     = 6                                  '6 edges per face
.
.
.
DIM as int faceCubes(_maxFace,_maxEdge,4)

and, later, the statment...

def blockfill(@faceCubes(0,0,0), sizeof(faceCubes), 0)

When compiled I get the error message

Error: Variable 'FACECUBES' has not been DIM'ed.
in file build_data.¼:BUILD_DATA.MAIN at line 283 in EntryPoint
€def blockfill(@faceCubes(0,0,0), sizeof(faceCubes€), 0)

I find this difficult to understand since faceCubes has in fact, been
DIM'ed.
What gives?

I know I can do

def blockfill(@faceCubes(0,0,0),
              (_maxFace+1)*(_maxEdge+1)*(4+1)*sizeof(int),
              0)

but the compiler must certainly know how to do this for me and I prefer the
more compact statement.

Charlie Dickman
3tothe4th@...

Good Lord,
Deliver us from
Ghoulies and
Ghosties and long
Leggety beasties and
Things that go bump in the night.