Skip to main content

Multiple Purpose Characters

There's just one more interesting thing to point out before moving on to the next exercise. You may have noticed that ObjectScript uses certain characters for multiple purposes. Here's a summary of the ones you've seen so far:

Character Purposes
? (question mark)
  • Column position for Write.

  • Pattern Match operator (covered later).

: (colon)
  • Timeout for Read.

  • Post-condition for all commands.

  • Counter specification for For.

# (pound)
  • New page.

  • Fixed-length for Read.

  • Modulo operator for arithmetic expressions.

^ (caret)
  • Routine prefix for Do.

  • Global prefix (covered later).

The ObjectScript Reference has a longer list of characters and their meanings.

FeedbackOpens in a new tab