[Lazarus] Namespace

Marcos Douglas md at delfire.net
Tue Jan 11 12:21:47 CET 2011


On Tue, Jan 11, 2011 at 5:50 AM, Marco van de Voort <marcov at stack.nl> wrote:
> On Mon, Jan 10, 2011 at 04:57:43PM -0300, Marcos Douglas wrote:
>> >
>> > is still an option.
>>
>> Right! But you saw what I written in first mail of this thread?
>> See:
>> "If units are namespaces, why not use them in widgets declarations,
>> automatic, in Lazarus?
>
> Why would you? If the number of identifier clashes is low, it makes more
> sense to disambinguate the clashes, and not have to change each and
> everything on every unitname change.

Well, was just an idea, anyway.
I think is more readable use unit.TFoo or unit.FooExec(), for example.
So, I do not need to be creating prefixes (even non-existent, perhaps).

Just one more example:
I like the prefix "dx" because make sense with one of the existing
projects here in the company, but the DevExpress already uses.

Use prefixes in class names until that is "beautiful"... but I also
use it in procedures or functions?
As you guys (who has no problems with identifiers) do?

Marcos Douglas




More information about the Lazarus mailing list