<p>Am 11.05.2016 19:35 schrieb "Santiago A." <<a href="mailto:svaa@ciberpiula.net">svaa@ciberpiula.net</a>>:<br>
> Something about codpages needs a second thought.<br>
><br>
> a) There shouldn't be automatic conversion at all.<br>
> b) The codepage of a string shouldn't change when you assign a string with another codepage, just rise an error.<br>
> c) Corollary of previous premises: Empty strings should also have codepage.</p>
<p>The codepage aware ansistring was implemented for Delphi-compatibility so this is highly unlikely to change.</p>
<p>> Extra 1) Beside calling SetSetcodepage, it would be handy that you could set the codepage when you declare a string. I don't mean codepage should be statically typed, just it would be handy.</p>
<p>A string is Nil upon it's declaration so there is nowhere where you could store that information. It only has the static codepage that it had been declared with.</p>
<p>> Extra 2) Being able to set the codepage statically, so that mismatch codepage could be detected in compiler time, would be handy. In this case I do mean codepage could also be statically typed,</p>
<p>Codepages are already set statically.</p>
<p>Regards,<br>
Sven</p>