This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: Pascal Strings -- WITHDRAWN


Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Zem" == Ziemowit Laski <zlaski@apple.com> writes:
> 
> Zem> Actually, now I realize that 255 as the length limit was right in
> Zem> the first place.  Aside from avoiding the overflow problem
> Zem> described here, 255 ensures \ that Pascal strings are
> Zem> *portable*. Correct me if I'm wrong, but one wouldn't want to
> Zem> have 1000-char Pascal strings that compile fine on one platform
> Zem> but not on others.

Why not?  Even

char x[100000];

doesn't compile on all platforms.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]