Kernel & Toolkit APIs Banner [skip navigation]
Office of Information and Technology (OIT) Banner

XINDEX: Informational Messages

These issues are not necessarily errors but still require attention, because they could indicate potential problems.

I—QUIT Command followed by only one space

This is another whitespace issue. In standard M, a routine is terminated by a single QUIT command and a function returns a value with a QUIT followed by a single space and then an expression that evaluates to the value to be returned. When you encounter a QUIT followed by a space, it is most likely extra whitespace at the end of a line.

 


I—Star or pound READ used

In M, READ is normally a line-oriented command. However, there are two syntactic variations on the READ command where its use is inappropriate.

Example 1

The following example reads a single character into X.

READ *X
Example 2

The following example reads 100 contiguous characters (bytes on most M systems) into X. Use of so-called star and pound READs was once disallowed, but is now permitted so long as applications follow other relevant standards.

READ X#100