[fpc-devel] Thoughts on being able to declare "pointer-to-type" parameters directly in method signatures?

Martin Frb lazarus at mfriebe.de
Mon Jun 10 12:21:17 CEST 2019


On 10/06/2019 04:00, Dmitry Boyarintsev wrote:
>
> function DoSomething (a: ^Integer; b: Pointer): integer;
>
> Should the flowing code (inside of DoSomething body) be ok as well?
>   ((^Integer)(b))^ := a^;
>
> (keep in mind that ^A ... ^Z is also a character escaping)
>
Inside code / Outside declaration, this already has a meaning:

^I  is #9
So this is a char constant.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190610/96f0f416/attachment.html>


More information about the fpc-devel mailing list