[Lazarus] Namespace
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jan 12 18:24:30 CET 2011
Marcos Douglas <md at delfire.net> hat am 12. Januar 2011 um 18:05 geschrieben:
> On Wed, Jan 12, 2011 at 1:57 PM, Andreas Schneider <aksdb at gmx.de> wrote:
> >
> > ... which you can already do. The unit order in the uses clause
> > already determines which identifier is chosen when you do *not*
> > specify a unit explicitly. So just make sure that LCL's TButton is
> > always the default one and you can still use your own TButton by
> > prefixing it with your own unitname. All you want is already there and
> > seems to cover 99% of the usecases.
>
> But I can register a component called TButton?
No, that would conflict with the LCL TButton. See the FCL function FindClass.
> Because that I proposed the Lazarus put the unit name in the code,
> automatic...
Just use the right unit order.
Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110112/f3c99ffc/attachment-0003.html>
More information about the Lazarus
mailing list