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

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon Jun 10 04:00:19 CEST 2019


On Sun, Jun 9, 2019 at 8:48 PM Ben Grasset <operator97 at gmail.com> wrote:

> Of course not. That would be rather nonsensical, *for very obvious
> reasons*, that I've already gone out of my way to address in this comment
> chain. It is however utterly ridiculous to directly correlate that with
> `^Type` syntax, as they are only related in the most vague of ways.
>

If such declaration would be ok:
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)

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190609/13702aa2/attachment.html>


More information about the fpc-devel mailing list