[Lazarus] Troll Tech and Inprise/Borland Collaborate on LinuxGUI
Florian.Klaempfl at gmx.de
Fri Apr 28 16:23:47 EDT 2000
Curtis White wrote:
> I am a little confused about this issue. Unless we are compiling and
> linking to the C++ source code, why it is necessary to support C++?
> Couldn't the QT header files just be converted to Pascal the same way the
> GTK header files were? Once the code is compiled, it just makes calls to
> the binary objects at the binary level, right? Or not? And Pascal
> already supports most of the same things as C++ except multiple
> inheritance and maybe a couple of others. So I would think that the
> header files could be converted without too much trouble. There might be
> a few challenges to work through (like multiple inheritance), but I would
> think it wouldn't be all that hard.
> Unless I am wrong about how all this stuff works at a lower level, I
> don't see any reason that the compiler should need to support C++. Can
> someone explain to me what I am missing here?
A lot, the low level stuff works completly different:
- Qt uses C++ classes but the FPC class modell isn't compatible with that
one used by egcs (and that one used by egcs isn't compatible with
that of gcc :()
- MI requires a lot of changes (syntactical and semantical)
- C++ uses a complete different exception handling model
> How hard would it be to add that support to the compiler if it is needed?
It IS hard but I'am working on it :)
More information about the Lazarus