On 18 Apr 2004 at 21:16, Waldek Hebisch wrote:
[...]
In the program above I really wanted `forward' declaration -- the point is how much meaning do the empty parentheses have. And I hope that declarations in interfaces and methods behave the same, so I started with `forward'. It seems that empty parentheses in procedure definition mean no parameteres (while ommited parameters in standard Pascal mean that the compiler should use parameters from forward declaration).
If my interpretation is correct the examples below should be accepted:
{ standard Pascal} procedure pi (i : integer); forward; procedure pi; begin end;
procedure pe ; forward; procedure pe (); begin end;
procedure pe (); forward; procedure pe ; begin end;
procedure pe (); forward; procedure pe (); begin end;
They are all accepted by Delphi and by GPC with your latest patch.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/