On Fri, 30 Jun 2006, George Birbilis wrote:

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?

It compiles it as in Delphi in {$MODE DELPHI}

Michael.

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

Reply via email to