[Lazarus] Support for dotted unit name
Dimitri Smits
smitco at telenet.be
Mon Nov 7 02:59:38 CET 2011
----- "Sven Barth" <pascaldragon at googlemail.com> schreef:
> Am 04.11.2011 11:15, schrieb Hans-Peter Diettrich:
> > William Oliveira Ferreira schrieb:
> >> Sorry about my low knowlegde, maybe i am the most slow-learning
> mailer
> >> of this list but i don't understand the advantage of using dots on
> >> unit name. Could someon explain it to me?
> >
> > It's not an advantage, only a relict from the (never finished) .NET
> > experiment. It's kind of emulation of the .NET namespaces or
> assemblies,
> > where e.g. System.System could denote the Delphi System unit in the
> .NET
> > namespace (or assembly) System.
>
> I don't think that Embarcadero considers dotted unit names as a relict
>
> as they've improved the concept with a "default namespace" in XE2 (I
> don't know whether I personally consider that as a improvement though
>
> ^^) and also introduced dotted names for all RTL, VCL and FireMonkey
> units.
>
> Regards,
> Sven
and as will be revealed in a few weeks, their (RemObjects' actually) jvm compiler aka Oxygene will benefit from the language construct. then again, both that jvm and .net targets are compilers of RemObjects with SOME differences to language constructs and syntax.
why in win32/win64/macOSX this should be a requirement other than maybe package-namespace-denotion is beyond me. In a java (packages) or .net (assemblies) environment they are only that: namespaces. (well, maybe in java the public class has to be atomic in a single file too :-))
kind regards,
Dimitri Smits
More information about the Lazarus
mailing list