On 16.11.2017 20:25, Maciej Izak wrote:
> 
> 
> 2017-11-16 20:17 GMT+01:00 Sven Barth via fpc-pascal
> <fpc-pascal@lists.freepascal.org <mailto:fpc-pascal@lists.freepascal.org>>:
> 
>     One other point to differentiate them: the modifier one always ends with
>     a semicolon after the closing bracket, Delphi's attributes never do
>     that.
> 
> 
> sadly this is not true at all :(
> 
> see:
> 
> https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=35000
> 
> in above example it works without semicolon without any problems 

Okay, that might be true in the middle of the modifier list, but not if
it's the last one:

=== code begin ===

unit tprocmod;

interface

procedure Bla; cdecl; [public, overload]

var
  test: LongInt;

implementation

procedure Bla;
begin
end;


end.

=== code end ===

This results in "Syntax error, ";" expected but "VAR" found".

In how far that can be used to handle the modifiers and attributes
together in parallel needs to be seen...

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to