Shop OBEX P1 Docs P2 Docs Learn Events
declaring contiguous variables — Parallax Forums

declaring contiguous variables

agfaagfa Posts: 295
edited 2009-09-20 23:03 in Propeller 1
I have a question about the way a VAR is declared in MCP3202.spin posted by Ken Gracey.

http://forums.parallax.com/showthread.php?p=842148

The VAR "ins" is declared like this.·
long  ins             '4 contiguous longs (2 words + 1 long + 2 longs)

·I thought it would have to be declared like this to reserve memory for the 4 longs.
long  ins[noparse][[/noparse]4]           '4 contiguous longs (2 words + 1 long + 2 longs)

·I've attached the code in question.

agfa

Comments

Sign In or Register to comment.