In article <1123667966.820629.24450@[EMAIL PROTECTED]
>,
<Lennart.Thelander@[EMAIL PROTECTED]
> wrote:
>
>There were (and still is) MPW p2c from Apple that were supposed to
>convert Object Pascal to C++, but it also crasches often. The converted
>files (those that CAN be converted) can't be compiled (for a number of
>reasons). Anybody know of a better way of converting Object Pascal to
>C++? Short of manually re-writing the code, that is.
Wow, haven't even thought about p2c for so many years...! My memory is
that there were only a handful of certain Object Pascal code structures
that p2c would fail on, and once you realized this you could first comment
them out, then run (successfully) p2c, then manually convert that stuff
that had had to be commented out. Then you had to manually convert the
lines that it couldn't translate very well. It was painful, but the more
you did it the better you got at it, and after a while it became fairly
easy. There was also a company, I think based near Lake Tahoe, Nevada,
that would do this for a (big) fee, but they may not be around any longer.


|