Contents | Index | < Browse | Browse >
2.4. Strings
There are two forms of strings in ADL: compile-time
strings and run-time strings. Compile-time strings are
those which appear in the ADL source code for the scenario.
They are delimited by double quotes and are transformed into
positive sixteen-bit String IDs by the compiler. These
strings are free-form in that a carriage return may appear
in them at any point. This sort of carriage return is
transformed into a blank. Should the ADL programmer desire
a true carriage return, the sequence n should be embedded
in the string at the appropriate point. Compile-time
strings may be limited to 255 characters in length in some
implementations.
Run-time strings are those which are typed by the
player and those which are generated by the built-in string
manipulation routines. Strings in player input may be del-
imited by appropriately nested single or double quotes. All
run-time strings are represented as NEGATIVE sixteen-bit
string IDs.