Prof A Olowofoyeku (The African Chief) wrote:
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 E:\temp\foo.pas(10) Error: 'END' expected but ']' found
Since several of you mentioned this, the issue was not about EP structured values -- any function returning a record will do (which BP doesn't allow, other compilers do).
Frank