
Spin Lesson 10: Quick Review
- Spin Language:
- The pipe symbol ‘|’ on method declaration lines declares a list of local variables for the method.
- The STRING directive creates a zero-terminated string and returns its address.
- The # symbol forms an Object-Constant reference used to access constants defined in other objects.
- The TRUNC directive truncates floating-point constants to integers.
- Integers and Real Numbers:
- Integers are directly supported both in constants and in run-time expressions.
- Real numbers, in floating-point format, are directly supported in constants and are indirectly supported at run time by special library objects.
- In many cases, expressions involving real numbers can be solved without using floating-point values and methods.
- The Status Bar displays compile information about the source item nearest to the cursor. This includes CON/DAT block symbol’s size/address and PUB/PRI/DAT block’s size.
