[fpc-devel] How FPC handles dynamic arrays with const modifier?

Sven Barth pascaldragon at googlemail.com
Tue Aug 13 07:11:25 CEST 2013


Am 12.08.2013 23:32 schrieb "Maciej Izak" <hnb.code at gmail.com>:
>
> Hi, I have some code (very important for next version of
Generics.Collections):

I don't see a reason to use hacks for such code.

> procedure Foo(A: Pointer);
...

> type
>   TFoo = procedure(const A: TIntegerDynArray);
>
> var
>   Test: TFoo;
> begin
>   Test := @Foo;

I wonder why this combination compiles at all O.o

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130813/ae03687d/attachment.html>


More information about the fpc-devel mailing list