Re:Pascal at Apple
by yardshop on Friday July 21, 2017 @11:33PM
(#14825248)
And the string length is in the 0 byte, meaning no strings longer than 255 bytes. At least in old Turbo Pascal anyway!
[ Parent
| on HN ]
Re:Pascal at Apple
by clouddrover on Saturday July 22, 2017 @02:46AM
(#14825778)
Yes, this is not a limitation in Free Pascal or Delphi. The ShortString type still exists and is limited to 255 bytes. But the AnsiString, WideString, and UnicodeString types are variable length and can be up to 2 gigabytes:
http://docwiki.embarcadero.com/RADStudio/Berlin/en/String_Ty...
In the case of classic Mac OS it was part of the API.