> Gabor Boros wrote:
> > begin
> >   Obj:=TObj.Create;
> >   Obj.OnProgress:=proc1;
>
> Try ... := @proc1;
>

Indeed, it was trying to call proc1. The question is, shouldn't the compiler
first check in this case that you tried to use a left-only symbol on the
right-side of an assignment? Then the problem would be more clear to the
user. I understand that it first tries to parse the right side and throws
this error though, since one could have also written proc1+proc2 there, but
having an extra precheck for the case of :=proc wouldn't hurt I think (or if
it doesn't stop on first error, it should show after the first message that
the proc can't be used on the right-side of the assignment)

The thing is, did it work with Delphi, or did the original poster forget
they had used @ at Delphi? I suppose they forgot

----------------
George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0626-3, 29/06/2006
Tested on: 30/6/2006 11:46:36 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to