[fpc-devel] The (near) future of strings
Sven Barth
pascaldragon at googlemail.com
Mon Mar 7 17:06:39 CET 2016
Am 07.03.2016 15:00 schrieb "Marco van de Voort" <marcov at stack.nl>:
>
> 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.
Of course we are going to implement the namespace prefix as well...
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160307/0ca7dfc9/attachment.html>
More information about the fpc-devel
mailing list