[Lazarus] Is Lazarus project in a downward spiral?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Mar 8 15:58:51 CET 2010


Juha Manninen schrieb:

> Thinking it more carefully, a C++ parser is needed if you want to make 
> the conversion even nearly automatic. The languages have different 
> contructs.

The main difference is the object model, including multiple inheritance 
and lifetime, and templates. C++ also has an ambiguous syntax.

> There are C++ features which can't be (easily) converted, like pointer 
> arithmetic and templates.

Pointer arithmetic is the same in C and Pascal, Free Pascal even 
supports some C-ish conventions (pointers are equivalent to arrays), and 
operator overloading.


> I didn't find any C++ to object pascal (or Delphi) converters from 
> internet by google search. If nobody has made it then it must be a 
> difficult task.

It's not so difficult, but some constructs simply can not be translated, 
for language and object model design reasons. What's the use of an 
automated translator, that cannot translate everything?

DoDi





More information about the Lazarus mailing list