4 ms·
And the string length is in the 0 byte, meaning no strings longer than 255 bytes. At least in old Turbo Pascal anyway!
by yardshop 9y ago
And the string length is in the 0 byte, meaning no strings longer than 255 bytes. At least in old Turbo Pascal anyway!
- clouddrover 9y agoYes, 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_Types_(Delphi) http://docwiki.embarcadero.com/RADStudio/Berlin/en/String_Ty...
- yuhong 9y agoIn the case of classic Mac OS it was part of the API.
- pjmlp 9y agoWith 640 KB it wasn't as there was a lot of space to have bigger strings. Besides, there were arrays as well, and TPW had safer strings without that limitation PCharStr.