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


-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to