Does an Object have an address that can be used in SPIN?
eldonb46
Posts: 70
Is there a way to access an Object via Numeric?
In my case I have several Display Objects: Parallel LCD, I2C LCD, VGA, etc, etc
What I would like to do is something like:
Then, for example:
Of course, this becomes more interesting, and useful, for a more complex example.
So, Is the address or pointer available for an Objects (or its Methods)?
Currently I am writing SPIN code with large Case statements for each of the "like" methods contained within each Display Object.
It would be nice it if there is an easier way
Thanks
Eldon
In my case I have several Display Objects: Parallel LCD, I2C LCD, VGA, etc, etc
OBJ DSPA : "jm_lcd.... DSPC : "BiZ_lcd.... DSPC ; "VGA" etc, etc
What I would like to do is something like:
PRI DSP[0] := DSPA DSP[1] := DSPB etc, etc
Then, for example:
repeat i from 0 to 4 DSP[i].Clear DSP[i].Dec(Value)
Of course, this becomes more interesting, and useful, for a more complex example.
So, Is the address or pointer available for an Objects (or its Methods)?
Currently I am writing SPIN code with large Case statements for each of the "like" methods contained within each Display Object.
It would be nice it if there is an easier way
Thanks
Eldon
Comments
-Phil
-Phil
I do not expect I will "game the system" in SPIN, that is beyond my pay grade. :frown:
But, . . . does the new "C/C++" IDE provide Standard I/O File Descriptor (fd) or logical units, that would provide desired functionality?
Thanks,
Eldon