[fpc-pascal] StrToInt is using ShortString buffer?
doug at moosemail.net
Wed Jan 12 17:57:02 CET 2022
So, are you saying the one cannot declare an IntToStr function with the string represented by a PChar argument? Seems pretty straightforward to me.
Isn't that what is being requested?
---- On Wed, 12 Jan 2022 11:10:57 -0500 Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote ----
DougC via fpc-pascal <mailto:fpc-pascal at lists.freepascal.org> schrieb am Mi., 12. Jan. 2022, 15:20:
You can always create such a function yourself, gain experience using it, and share the source with us. That way others can gain experience with it and maybe someday also ask for it to be added to the standard library.
While that is in general the case, here this is not that easy, cause as Michael wrote, Val is an intrinsic which is fact backed by multiple function and the compiler itself needs to call them correctly. So in this case to play around with it means adjusting *both* the RTL and the compiler.
fpc-pascal maillist - mailto:fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal