[fpc-devel] Alternative parsers
Marco van de Voort
marcov at stack.nl
Wed Oct 20 10:12:13 CEST 2010
In our previous episode, Michael Schnell said:
> >
> > I would like to see my C parser working as an FPC front-end,
>
> I feel that there in fact is a decent cause for doing a C(++) front-end
> for the FPC compiler: importing existing C++ code into a Pascal project.
> I suppose this is not possible completely without modifying the C++ code
> this will not be possible in many cases (please don't start discussing
> multiple inheritance ;-) ), but this would be a lot better than the
> current situation where linking FPC and C++ is completely impossible due
> to the different ABI.
As said thousands of times, it still will be different.
See e.g. Delphi and BCB, where C++ classes needed to be explicitely declared
(pureclass) to be usable from Delphi.
More information about the fpc-devel
mailing list