Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rochester.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!hplabs!hao!seismo!rochester!ken From: ken@rochester.UUCP (Ken Yap) Newsgroups: net.lang.c,net.lang Subject: Re: C to Pascal translation. Message-ID: <4962@rochester.UUCP> Date: Sat, 22-Dec-84 18:54:08 EST Article-I.D.: rocheste.4962 Posted: Sat Dec 22 18:54:08 1984 Date-Received: Thu, 27-Dec-84 02:22:33 EST References: <392@amdcad.UUCP> <1928@umcp-cs.UUCP><284@oakhill.UUCP> Reply-To: ken@seneca.UUCP (Ken Yap) Distribution: net Organization: U. of Rochester, CS Dept. Lines: 17 Summary: In article <284@oakhill.UUCP> davet@oakhill.UUCP (Dave Trissel) writes: >Modula-2 does. Note that Modula-2 also handles string ala "C" with a zero >terminator byte. Not quite right. Modula-2 treats strings as arbitary length char arrays. This is normally implemented by passing two parameters, the array address and a count. The callee can find out how long the array is by using the intrinsic HIGH(a) where a is the array in question. Some implementations have chosen to add a null byte at the end as well to allow intermixing of C and Modula-2 routines. Regards, -- Ken Yap UUCP: (..!{allegra, decvax, seismo}!rochester!ken) ARPA: ken@rochester.arpa USnail: Dept. of Comp. Sci., U. of Rochester, NY 14627.