So the question is, what does or should do RomanToInt for invalid input?

It is NOT called "CheckValidRoman", so it could be that the result for
invalid input is simply undefined. If it is, then all is ok.

so, what does "10AT" (or "$10AT" for tht matter) return for HexToDec??? maybe NaN, if there is such a definition in Pascal??? Looks acceptable to me.

But IsValidRoman is as good as a solution too, indeed...
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to