Prof A Olowofoyeku (The African Chief) a écrit:
On 22 Oct 2004 at 14:53, Frank Heckenbach wrote:
Currently GPC allows function results in `with' statements, as in:
program foo;
type a = record b, c: Integer end;
function f: a; begin f := a[b: 2; c: 3]
Delphi does not accept this. It gives this error: E:\temp\foo.pas(10) Error: '(' expected but '[' found
BP accepts only () not [] in initializers, and only in constants. gpc accepts both
Maurice