Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pur-phy.UUCP Path: utzoo!linus!decvax!harpo!floyd!clyde!ihnp4!inuxc!pur-ee!CSvax:Pucc-H:Physics:hal From: CSvax:Pucc-H:Physics:hal@pur-ee.UUCP Newsgroups: net.lang Subject: Modula-2 - Strings Message-ID: <1036@pur-phy.UUCP> Date: Fri, 30-Sep-83 12:44:40 EDT Article-I.D.: pur-phy.1036 Posted: Fri Sep 30 12:44:40 1983 Date-Received: Mon, 3-Oct-83 06:01:56 EDT Organization: Purdue University Physics Dept. Lines: 15 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)