This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Pascal Strings -- TAKE FOUR
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: PATCH: Pascal Strings -- TAKE FOUR
- From: Ziemowit Laski <zlaski at apple dot com>
- Date: Tue, 3 Jul 2001 19:22:39 -0700
- Cc: Geoff Keating <geoffk at geoffk dot org>, gcc-patches at gcc dot gnu dot org
On Tuesday, July 3, 2001, at 05:43 , Joseph S. Myers wrote:
> Make sure, of course, that allowing longer strings on such platforms is
> correct. What does the ISO Pascal standard say about string lengths and
> byte sizes?
From what I can tell, the type 'string' (in which the first byte serves
as
the length) is not in ISO 7185 (standard Pascal). Instead, it is a
commonly-found extension (in UCSD, Turbo Pascal, etc.), sometimes
referred
to as a 'BASIC string' (and no, I don't even want to go there... :) ).
This is the functionality that the proposed patch addresses.
--Zem
--------------------------------------------------------------
Ziemowit Laski Apple Computer, Inc.
zlaski@apple.com 2 Infinite Loop, MS 302-4SN
+1.408.974.6229 Fax .1344 Cupertino, CA 95014-2085