segfaults

bearophile bearophileHUGS at lycos.com
Tue Feb 23 02:20:55 PST 2010


Ellery Newcomer:
> Is there any decent way to figure out where segfaults are coming from?
> e.g. 200k lines of bad code converted from java

To perform that translation you have to do first adapt the original Java code to D as much as possible keeping it woeking, then add unit tests to each method to each class of the Java code (if they are missing) and then translate the classes one class at a time, and for each class you translate the unittest too, and you add preconditions & invariants too. You have to do all that one little step at a time, and test very well every tiny step you take.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list