Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am intending to purchase some source code for my Delphi program. It is not too big an algorithm, but it is not available in Delphi and I'll have to translate it to Delphi.

However, I have not worked in any of the languages it is offered in and I don't know which I should buy. I want the one that will translate to Delphi most easily and accurately.

The three languages are: C++, Java, and C#.

Which one would be easiest to convert?

share

migration rejected from stackoverflow.com Jun 16 '13 at 10:06

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as not constructive by gnat, MichaelT, Dynamic, Martijn Pieters, ChrisF Jun 16 '13 at 10:06

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

up vote 3 down vote accepted

I don't really have an answer about converting, but given that it's the Metaphone algorithm you want to purchase, I wanted to make sure you're aware that there is already an implementation for Delphi:

http://sourceforge.net/projects/metaphone/

Even if for some reason the commercial version is preferable and you want to port it to Delphi, it would probably help to compare the other language's implementation to the Metaphone already available for Delphi.

share

Your best bet is a free Java 2 Pascal convertor. There is also free C# to Oxygene convertor, which is actually a convertor to Prism (which is pretty close to Delphi Pascal language).

In both cases don't expect converting a full application, but rough converting of units and then using parts in your code will work with some manual corrections.

share

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.3.3.2353\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Programmers Stack Exchange works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>"], "copyright__copyright__copyright": [" to the Metaphone already available for Delphi.\n\nshare\n\nYour best bet is a free Java 2 Pascal convertor. There is also free C# to Oxygene convertor, which is actually a convertor to Prism (which is pretty close to Delphi Pascal language).\n\nIn both cases don't expect converting a full application, but rough converting of units and then using parts in your code will work with some manual corrections.\n\nshare\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}