Re: Strings
- Posted by Irv Mullins <irv at ELLIJAY.COM> Nov 23, 1998
- 442 views
On Tue, 24 Nov 1998 00:07:28 +1300, jiri babor <jbabor at PARADISE.NET.NZ> wrote: >More recent pascal incarnations usually have 'zero' delimited strings too, >but the classic pascal string is up to 255 characters (bytes) long with the >current char count in the zero byte. jiri > The traditional Pascal string is an array of char with the actual length in byte[0] This makes string handling much easier and faster for Pascal than for C, but also limits you to short strings. Newer Pascals, Borland, for example, have added C-style strings, ending in 0 - mostly to cater to Windows. Unfortunately, that adds a whole 'nother set of string functions to keep track of. Plus a set of conversion functions... Arrgh! Irv