<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 10, 2014 at 3:28 AM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be" target="_blank">jonas.maebe@elis.ugent.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
<br>
</div>In FPC, this setting only depends on the {$zerobasedstrings on/off} directive (supported in FPC 2.7.1+). The default is "off" everywhere. You can also switch it off in Delphi for mobile targets: <a href="http://docwiki.embarcadero.com/RADStudio/XE4/en/Zero-based_strings_(Delphi)" target="_blank">http://docwiki.embarcadero.com/RADStudio/XE4/en/Zero-based_strings_(Delphi)</a><br>

<br>
They probably changed the default there for efficiency reasons (not having to subtract 1 from string indices all the time).<br>
<span class=""></span><br></blockquote></div>Sigh... Making a language target dependent (0-based for "mobile" and 1-based for "desktop") contradicts the concept of high-level language. <br><a href="http://en.wikipedia.org/wiki/High_level_language">http://en.wikipedia.org/wiki/High_level_language</a><br>
"In computer science, a high-level programming language is a programming language with strong abstraction from the details of the computer.". <br><br></div><div class="gmail_extra">It goes as stupid as this: If my computer fits into a palm and/or looks fancy, it's 0-based, otherwise it's 1-based string.<br>
</div><div class="gmail_extra"><br>To make things worse, it actually has nothing to do with a target computer... but with the language marketing <br></div><div class="gmail_extra">What was the term for it? "High level trend language"?<br>
</div><div class="gmail_extra"></div><div class="gmail_extra"></div><div class="gmail_extra"></div><div class="gmail_extra"><br>thanks,<br>Dmitry<br></div><div class="gmail_extra"><br><br></div></div>