[Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

Sven Barth pascaldragon at googlemail.com
Thu Dec 26 09:24:54 CET 2013


Am 26.12.2013 00:24 schrieb "Marcos Douglas" <md at delfire.net>:
>
> On Wed, Dec 25, 2013 at 7:41 PM, Sven Barth <pascaldragon at googlemail.com>
wrote:
> > Am 25.12.2013 19:19 schrieb "Marcos Douglas" <md at delfire.net>:
> >> > Since that means typically two per target, it was suggested to
combine
> >> > this
> >> > using dotted unit functionality.
> >>
> >> I did not understand this... dotted unit functionality?
> >
> > Delphi XE 2 with the introduction of FireMonkey switched from normal
unit
> > names for the RTL to dotted ones (aka unit namespaces). E.g. SysUtils
and
> > Classes became System.SysUtils and System.Classes respectively, the
Windows
> > units moved into a Windows "namespace" (AFAIK) and Forms became
VCL.Forms.
> > Now the XE2 IDE and command line compiler also provide the possibility
to
> > specify multiple default namespaces (e.g. a VCL application would have
> > System and VCL) to ensure backwards compatibility.
>
> Simple explanation, I understood, thank you.
>
> So the new Delphi "namespace" is virtual (eg: there is no
> VCL.Forms.pas file only a Forms.pas) or they have two options, two
> files?

Neither. They only have e.g. VCL.Forms.pas and using the option I mentioned
(e.g. set to "VCL,System") the compiler will look for VCL.Forms.pas,
System.Forms.pas and Forms.pas (dont know the implemented order though) if
the using of a unit Forms is encountered.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131226/feda2993/attachment-0003.html>


More information about the Lazarus mailing list