[fpc-devel] The (near) future of strings
Marco van de Voort
marcov at stack.nl
Mon Mar 7 15:00:01 CET 2016
In our previous episode, Michael Van Canneyt said:
> 2. Provide Delphi-compatible dotted units, with string = widestring.
>
> Basically, the user has then 2 choices:
> 1. is the pre-delphi 2009 option,
> 2. is the Delphi 2009 and higher option
>
> Both units can be created using a single codebase quite easily.
> I take as example the sysutils unit:
>
> unit sysutils.pp contains {$IFDEF UNICODESTRING} to distinguish between
> unicode and non-unicode code.
>
> the dotter unit system.sysutils.pp is then the following simple file:
>
> {$mode delphiunicode}
> {$define UNICODESTRING}
> {$I sysutils.pp}
>
> The above is my personal preference, but other people in the core group may
> (and do) have different preferences.
I usually use Delphi XE2+ with namespace prefix, and many with me. IMHO
requiring to change Delphi sources to dotted units is a nono.
More information about the fpc-devel
mailing list