[fpc-devel] FPDoc improvements

Michael Van Canneyt michael at freepascal.org
Sat Jan 28 11:13:32 CET 2012



On Sat, 28 Jan 2012, Marco van de Voort wrote:

> In our previous episode, Michael Van Canneyt said:
>> Meanwhile I have a simple example using 2 units floating around somewhere.
>> It took me lots of time to find it, but now I know where the cause is.
>> Solving it is another matter entirely.
>
> I've been thinking about it, and following the compilers way of working is
> the only solution.
>
> If you want to resolve identifiers like a compiler, you have to build scopes
> like a compiler, and do that in the right order.
>
> Otherwise funny things will happen with duplicate identifiers.

I know. 
The problem will get only worse with nested type declarations, which are next on my todo list.

This whole mess is why I am writing lots of FPCUnit test cases and using a structured approach.
IMHO the only way to do this properly.

But this takes time, of course.

Michael.



More information about the fpc-devel mailing list