On 9/23/13, Martin <laza...@mfriebe.de> wrote:

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

Probably return 0.
Romans seemed to have no zero at all.
It also will not break backwards compatibility, current
implementatiosn returns zero if an invalid character is found (docs
say otherwise though).

We could also leave things as they are and have a new
TryRomanToIntStrict() function added to StrUtils.

Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to