[net.lang] Modula-2 - Strings

CSvax:Pucc-H:Physics:hal@pur-ee.UUCP (09/30/83)

The REPORT specifies that a single character string is of type CHAR and
that a string consisting of n>1 characters is of type ARRAY[0..n-1]OF CHAR.
What about the null string:
	nullstr = "";
Since the REPORT says that a string of length n1 can be assigned to a
string variable of length n2>n1 by padding with a null character, I propose
the type be ARRAY[0..0]OF CHAR with nullstr[0] = 0C.  What have others done?
(It's too bad that all strings aren't extended with 0C.  Also, 'x', type
CHAR; "x" type string would have been nice but this is nitpicking)


				Hal Chambers
				Physics Dept.
				Purdue Univ.
				(...!pur-ee!pur-phy!hal)