[fpc-pascal] Re: StrUtils.RomanToInt oddities

Alberto Narduzzi albertonarduzzi at yahoo.com
Mon Sep 23 23:30:48 CEST 2013


> What about making an option of it?
>
> Anyhow, if the function accepts invalid combinations, what should it
> return? For some, the answer would be obvious (IIII), but some
> combinations are indeed ambiguous (IIIIM) So that we maybe could accept
> unambiguous invalid combinations, but I don't see how to accept
> ambiguous ones.

they are not ambiguous, they are simply INVALID.



More information about the fpc-pascal mailing list