[fpc-pascal] StrToInt is using ShortString buffer?
DougC
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?
Doug C.
---- 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:
Alexey-
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.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - mailto:fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220112/00df1273/attachment.htm>
More information about the fpc-pascal
mailing list