You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The define statement allows you to define a symbol which will stand for a
string of text:
(define symbol lots of text)
will replace symbol, wherever it is encountered as a token, with lots of
text and then continue scanning at the beginning of the replacement text.
Thus, if we write
The
define
statements in Sierra's SCI behaved more like c-style macros.Here's an example from SMOOPER.SC:
(define HEADINGNORTH (or (<= theHeading 45 ) (> theHeading 315)))
Here's Sierra's documentation for
define
statements:Original request from the sciprogramming.com forums:
http://sciprogramming.com/community/index.php?topic=1420.msg12238#msg12238
The text was updated successfully, but these errors were encountered: