TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Bob van der Poel 76510,2203 (X)
from: Pete Lyall 76703,4230
date: 1992-11-22 13:41:35
subject: #17141-#12

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.