[fpc-devel] StrToInt -- Strange behaviour

Marco van de Voort marcov at stack.nl
Thu Feb 21 21:17:40 CET 2013


In our previous episode, Ewald said:
> Apparently the StrToInt function interprets strings starting with an `x`
> as hexadecimal numbers? This behaviour seems rather strange to me
> (strings starting with 0x would be a bit more understandable, but then
> again, we're programming pascal here, not C) and it is not mentioned in
> the documentation. What do I do with it?
> 
> A- File a bug concerning incomplete documentation?
> B- File a bug concerning incorrect behaviour of StrToInt()?
> C- Do nothing and live with it.
> D- ....?
  E- Test with Delphi and conclude it is compatibility.

... but a doc bugreport wouldn't be bad.



More information about the fpc-devel mailing list