[fpc-devel] Encoded AnsiString

Sven Barth pascaldragon at googlemail.com
Sun Dec 29 19:55:46 CET 2013


On 29.12.2013 17:53, Hans-Peter Diettrich wrote:
> Michael Van Canneyt schrieb:
>>
>>
>> On Sun, 29 Dec 2013, Hans-Peter Diettrich wrote:
>
>>>> This will be combined with the dotted unit filenames, to be Delphi
>>>> 2010+ compatible.
>>>
>>> <sigh.sigh>
>>> How do I create source files for use with both versions?
>>
>> What do you mean by this statement ?
>
> I'm not familiar with dotted unit names, they seem not to be used in XE.
> So I only can imagine something like conditionals around the different
> items in un/dotted environment, to keep "Classes" separate from
> "System.Classes"?
>

Dotted unit names are supported at least since Delphi 2007 (maybe also 
from 2005 on), but they weren't extensively used back then (look at 
Collections.Generics for an example). Only XE2 did use it extensively 
which was also when support for default namespaces were added. With XE2 
the RTL units were put into a System namespace, the VCL units were put 
into a VCL namespace and the newly added FireMonkey units were added to 
a FMX namespace. The usage of default namespaces (System and VCL in case 
of a VCL application) allows the usage of backwards compatible single 
identifier unit names.

> Are directories involved? If so, does the Delphi structure match the FPC
> tree structure?

No directories are involved, it's just the naming.

Regards,
Sven



More information about the fpc-devel mailing list