Technical data
B
Target Language Compiler Error Messages
B-18
The specified index (
index
) was out of the range
0 to number-of-elements – 1
This error occurs when indexing into any nonscalar beyond the end of the
variable. For example:
%assign x = [1 2 3]
%assign y = x[3]
This example would cause this error. Remember, in the Target Language
Compiler, array indices start at 0 and go to the number of elements minus 1.
The STRINGOF built-in function expects a vector of numbers as its
argument
The STRINGOF function expects a vector of numbers. The function treats each
number as the ASCII value of a valid character.
The SYSNAME built-in function expects an input string of the form
<xxx>/yyy
The SYSNAME function takes a single string of the form <xxx>/yyy as it appears
in the
.rtw file and returns a vector of two strings xxx and yyy. If the input
argument does not match this format, it returns this error.
The threshold on a %roll statement must be a single number
When using %roll, the roll threshold specified must be a single number. See
Chapter 2 for a complete discussion of the
%roll construct.
The WILL_ROLL built in function expects a range vector and an integer
threshold
The WILL_ROLL function expects two arguments: a range vector and a
threshold.