1
General / Re: Doomed name
« Last post by Martin_fr on Today at 09:09:52 pm »I changed Range: SizeUInt to Range: SizeInt. Now it picking the right function.QuoteThis doesn't affect the result you get, but it will likely slow down your code.How I can avoid this?
I don't know why fpc puts it there, or if all versions of fpc do.
For fpc 3.2.3 (at least at -O1) using an untyped parameter "procedure Pos(const str; c: ansichar; o: sizeint);" does not trigger it. But, without knowing why it is triggered in the first case, there is no telling if that is for all settings and/or versions.
Also, an untyped param, may lead to new issues with the overload detection...
Maybe someone from the fpc team will know.