Shop OBEX P1 Docs P2 Docs Learn Events
Enum Syntax Question — Parallax Forums

Enum Syntax Question

soshimososhimo Posts: 215
edited 2009-01-12 18:08 in Propeller 1
I found the following syntax for an Enum:
#0,Dpin,Cpin,SLpin,#8,Bits                                                  'Set Dpin,Cpin,SLpin and Bit constant



I understand the enum declaration but what is confusing me is the #8 in the middle next to the Bits mnemonic. Is this specifying that the Bits mnemonic has the value of 8 rather than the next sequential value? I hope that's the case because I would like to use non-sequential values in some of my enums (bit masks come to mind first thing).

If that isn't what it means, could someone point out what it does mean?

TIA.

Comments

Sign In or Register to comment.