[Lazarus] OT: Namespaces?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Apr 7 16:59:29 CEST 2009


On Tue, 7 Apr 2009 15:32:28 +0200
zeljko <zeljko at holobit.net> wrote:

> On Tuesday 07 April 2009 15:11, Mattias Gärtner wrote:
> 
> >
> > AFAIK under Delphi the 'in' modifier has two purposes:
> > - mark the unit as part of the project
> > - use a unit from a directory which can not be added to the unit
> > search path, because there is a duplicate.
> 
> Lazarus uses same logic isn't it ?

It does not.
What belongs to the project is stored in the .lpi.

The codetools support the 'in' modifier and so does the lazarus IDE a
bit.
But the IDE does not update the 'in' file names and it does not have
any special consistency checks for them. So use them only if
you know what you are doing.

The converter for delphi projects supports them (fix the
file cases, adds them to the lpi).


> I already have such projects where
> I must use "in" like in delphi.

Please give a complete example. Maybe you are doing something wrong.

Mattias




More information about the Lazarus mailing list