[Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!
Giuliano Colla
giuliano.colla at fastwebnet.it
Tue Oct 24 19:00:11 CEST 2017
Il 24/10/2017 17:04, Sven Barth via Lazarus ha scritto:
>
> @NextProc := Coda.Remove;
> Sending := True;
> NextProc;
>
> with NextProc defined as a procedure of object does compile but
> it's wrong.
>
>
> Why are you using an @ when you assign the NextProc variable? O.o
>
Because it's required by Delphi syntax. An unqualified procedural type
means a call to the procedure.
Without the @ it would rise an "invalid left hand assignment" error.
Giuliano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171024/8f8de2eb/attachment.html>
More information about the Lazarus
mailing list