> > 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)
>
> I also think the error message can be clearer, but that's not
> for me to decide ;-).
>
> > The thing is, did it work with Delphi, or did the original poster
> > forget they had used @ at Delphi? I suppose they forgot
>
> No, Delphi allows this syntax. It even does not allow the
> syntax with an '@' in front AFAIK.
>

Maybe there's some option (say "typed pointers" or something) that needs to
be changed in Delphi to accept the @?
If you use {$MODE DELPHI} does FPC compile the code when it's same as the
Delphi code? If not, isn't this an FPC bug?

----------------
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 12:00:48 ??
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