[Lazarus] Parser

Marco van de Voort marcov at stack.nl
Fri Jul 2 06:59:46 CEST 2010


On Thu, Jul 01, 2010 at 06:56:26PM +0200, Hans-Peter Diettrich wrote:
> 
> FPC overcomes this problem with the .ppu files (I assume)

No. That is an optimalization. The core feature is defining the unit
concept, and clearing (reinitializing from cmdline params) preprocessor
state

> C++ with 
> mangled names, reflecting the precise attributes of every compiled item.

.... which is why to my best knowledge, C++ doesn't solve this at all.

Mangled names solve name clashes between same named symbols in different
modules. They say nothing about this.
 
But you are right that the preprocessor state _IS_ the problem.




More information about the Lazarus mailing list