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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html NEW! GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8