122-32000 Parallax Inc, 122-32000 Datasheet - Page 199

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Here,
6, respectively. While this feature may be handy, to maintain good programming practices it
should only be used in rare cases.
Syntax 3 is a variation of the enumeration syntax. It doesn’t specify any starting value.
Anything defined this way will always start with the first symbol equal to either 0 (for new
CON
Scope of Constants
Symbolic constants defined in Constant Blocks are global to the object in which they are
defined but not outside of that object. This means that constants can be accessed directly
from anywhere within the object but their name will not conflict with symbols defined in
other parent or child objects.
Symbolic constants can be indirectly accessed by parent objects, however, by using the
constant reference syntax. Example:
OBJ
PUB SomeRoutine
Here an object, “
DEC
object’s constants, and
objects to define constants for use with themselves and for parent objects to access those
constants freely without interfering with any symbols they created themselves.
Num : "Numbers"
Format := Num#DEC
blocks) or to the last enumerated value plus 1 (within the same
constant with
RunTest
and
Numbers
Num#DEC
RunVerbose
DEC
,” is declared as the symbol
.
is the constant within the object we need. This feature allows
Num
are 1 and 2, respectively, and
'Set Format to Number's Decimal constant
is the object reference,
4: Spin Language Reference –
Num
. Later, a method refers to numbers’
#
indicates we need to access that
RunBrief
Propeller Manual v1.0 · Page 199
CON
block).
and
RunFull
are 5 and

Related parts for 122-32000