#: 17144 S12/OS9/68000 (OSK)
22-Nov-92 13:41:35
Sb: #17141-#12
Fm: Pete Lyall 76703,4230
To: Bob van der Poel 76510,2203 (X)
Bob -
Hmm.. lessee..
First, I'll assume that the reference to KEYS2 was a typo. Next, it appears
that you are declaring an array of pointers to a type 'int'. This array is KEYS
(26) elements long.
Now - in assigning 'indexes=p', you have told the compiler that you want
&indexes[0] = p. In other words, you have established 'p' as being the base
address of the array. If this is really what you want to do (?,?). Now since
&indexes[0] should probably only be an RVAL (something to be taken the value
of; not something to be assigned), I'm not sure the compiler will let you
assign a value, regardless of how you cast it. You may have to set up yet
another pointer to the array, or just set it up as a pointer to an int, i.e.:
int *intpointer;
Then could still reference array type stuff by using syntax like intpointer+1,
intpointer+offset, etc. Because the compiler knows how long an int is, this is
exactly like using array references anyway. The only catch is that you will
have to becareful about the 'subscript' (offset), as the compiler will pretty
much let you do what you want.
Pete
There is 1 Reply.
|