[Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!
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;
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus