[Lazarus] Parser

Marco van de Voort marcov at stack.nl
Thu Jul 1 09:39:07 CEST 2010


On Thu, Jul 01, 2010 at 09:18:06AM +0200, Michael Schnell wrote:
>   On 06/30/2010 10:23 PM, Adem wrote:
> > If you could compile, say, Modula (or C/C++) with FPC, you would have 
> > direct access to a huge & time-tested resource of libraries
> 
> In fact being able to tightly integrate C code (I can't speak for C++, 
> as I can't speak it) would be really nice to have. To be useful the 
> languages should be mixable at least on a per-unit base (better 
> per-procedure) and the debugger would be necessary to be working 
> properly on that.
> 
> I don't think this is easy to do, though.

I'm less afraid of difficulty and work, but more afraid that the results,
and the inevitable compromises would render it useless.

People think now "it would be nice" and think of a solution that operates as
a button "compile all this pascal and C source from various origins
magically together", and don't see the real picture.

The real picture will probably that both the pascal and the C/C++ side need
to be specially crafted. Think of Delphi's $externalsym, pureclass etc
hacks.




More information about the Lazarus mailing list