8
votes

Delphi: ZEROBASEDSTRINGS and maintaining cross-version Delphi libraries
The Wiert Corner
– One of the features that bites me over and over again is the ZEROBASEDSTRINGS that got introduced in Delphi XE3 and is by default ON in mobile compilers and OFF in Desktop compilers. Back then, Mark Edington showed a small example of the effects: and then explained: The XE3 RTL source code has been refactored to be string index base agnostic. In most cases this is done by utilizing string helper functions which are always zero based. When it is necessary to traverse a string, the Char[] property is often used to access the individual characters without concern for the current state of the ...
Statistics
|
Visits by Source |
User Actions |