Re: Is there a good Pascal to C++ Translator?

Marco van de Voort <marcov@toad.stack.nl>
16 Apr 2002 00:54:44 -0400

          From comp.compilers

Related articles
Is there a good Pascal to C++ Translator? s.c.siegel@web.de (2002-03-31)
Re: Is there a good Pascal to C++ Translator? bear@sonic.net (Ray Dillinger) (2002-04-06)
Re: Is there a good Pascal to C++ Translator? journeyman@compilerguru.com (2002-04-06)
Re: Is there a good Pascal to C++ Translator? s.c.siegel@web.de (2002-04-10)
Re: Is there a good Pascal to C++ Translator? rhyde@cs.ucr.edu (Randall Hyde) (2002-04-10)
Re: Is there a good Pascal to C++ Translator? journeyman@compilerguru.com (2002-04-13)
Re: Is there a good Pascal to C++ Translator? marcov@toad.stack.nl (Marco van de Voort) (2002-04-16)
| List of all articles for this month |

From: Marco van de Voort <marcov@toad.stack.nl>
Newsgroups: comp.compilers
Date: 16 Apr 2002 00:54:44 -0400
Organization: Eindhoven University of Technology, The Netherlands
References: 02-03-185 02-04-066
Keywords: translator, Pascal
Posted-Date: 16 Apr 2002 00:54:44 EDT

>>I need a Pascal to C++ translator. I still use p2c 1.22-8, but I have
>>problems, if i have two declarations of one function, but with
>>different parameter types.
>>Did any one know a way to do this or know a better Translator?
>
> Is this overloading (i.e., Borland's Pascal) or the same identifier in
> two different scopes?


The latter problably. BP doesn't support overloading in any form.
Can be fixed by prefixing program_ or unitname_ to all globals.


> Hopefully, a translator can handle the latter. The former would probably
> require a Borland Pascal/Delphi/Kylix versoin of p2c.


Depends on the target compiler. If it is for Intel and C++ Builder of GCC,
then porting to a 32-bit Pascal (Delphi, Free Pascal) and linking to it is
much less work.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.