[Lazarus] FPDoc Editor fails on namespace dotted unit names?
Marco van de Voort
marcov at stack.nl
Fri Apr 19 12:24:01 CEST 2013
On Wed, Apr 17, 2013 at 08:56:12PM -0400, Anthony Walter wrote:
> > Pascal would have to make an inventory of all files in the searchpath, not
> > just in a certain (classpath or GAC) location.
> >
>
> There are only 2 differences between what we currently have with dotted
> unit names acting as namespaces and C# namespaces.
>
> 1) You can't have more than one namespace in a file
> 2) You can't span a namespace across multiple files
3) it is a special form of namespace that can't contain anything else than units.
To contain something else, it must be an unit namespace.
> Regarding the code insight you asked me about, those two differences aren't
> relevant to the programmer user experience
My remark was somewhat compiler specific, but it bleeds through in the IDE
too, since in a Lazarus/FPC project, not all used source must be named in
the project. Stronger, the project doesn't even exist on a "build" level.
I'm no Lazarus expert, but I assume that bleeds through in the IDE. IOW
one can't assume that the project compilation unit list is complete.
> No, you don't need a GAC to achieve this. All you need is a list of unit
> paths, and the IDE can scan those folders for unit names. Something Lazarus
> already does.
I was wrong however to assume that Lazarus doesn't already constantly
monitor filepaths already. I don't know what it does there. I mixed up the compiler
and IDE/codetools POV.
More information about the Lazarus
mailing list