[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 03:19:25 CEST 2019


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

> On Sun, Jun 9, 2019 at 8:11 PM Dmitry Boyarintsev <
> skalogryz.lists at gmail.com> wrote:
>
>> Do you really want to change it? If yes, what's the **technical**
>> benefit?
>>
>
> Yes? Obviously? I clearly demonstrated the technical benefit in my
> original comment. *Yet again *though I do not understand why this is
> controversial. It would amount to a very tiny syntax addition, that does
> *nothing *other than make certain things *easier* to write.
>

Ah... I found it now. It's all about generics.  Well, there's nothing I can
argue about here.

Maybe just to point out that usage of "var" and "const" might have been a
more appropriate option, in the example.
And they don't require a pointer declaration either.

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


More information about the fpc-devel mailing list