[fpc-pascal] Question: OpenOffice and FPC?

Michael Van Canneyt michael at freepascal.org
Sun Dec 18 15:50:19 CET 2005



On Fri, 16 Dec 2005, Felipe Monteiro de Carvalho wrote:

> On 12/16/05, Vincent Snijders <vsnijders at quicknet.nl> wrote:
> > C++ headers are near useless, when you want to use fpc.
> 
> What about java. Is is easier to translate?
> 
> I still don´t get it why you guys think it is so hard to translate c++
> headers..... not that I´ve ever done it, but c++ code doen´t seam so
> different then c code to me.

The main problem are not the headers. The problems are on a binary level.

The first problem is the class structure - you need knowledge of VMT etc etc etc. 
On an assembler level, the name mangling is very different from C, it also changes 
with each version of the C++ compiler. We could have bindings for GCC 2.90, and 
with GCC 3.0 they would no longer work.

> Python and Perl probably much worse, since their structure is so different.

They are not compiled languages, but interpreted. All you could do from FPC is to run the interpreter.

Michael.


More information about the fpc-pascal mailing list