Haastrup
2004-12-14 18:26:48 UTC
Hello.
Why does a construction like the following fail compilation in GNU
Pascal. How am i supposed to write it?
program test;
type
AVEC=record
x,y:double;
end;
function test(u:AVEC):AVEC;
begin
test.x:=u.x;
test.y:=u.y;
end;
begin
end.
Output from compiler:
in function `Test':
request for field `X' in something not a record, schema or object
request for field `Y' in something not a record, schema or object
warning: return value of function not assigned
regards Søren.
Regards S. Haastrup.
(***@nameplanet.com)
(a semi no spam address)
Why does a construction like the following fail compilation in GNU
Pascal. How am i supposed to write it?
program test;
type
AVEC=record
x,y:double;
end;
function test(u:AVEC):AVEC;
begin
test.x:=u.x;
test.y:=u.y;
end;
begin
end.
Output from compiler:
in function `Test':
request for field `X' in something not a record, schema or object
request for field `Y' in something not a record, schema or object
warning: return value of function not assigned
regards Søren.
Regards S. Haastrup.
(***@nameplanet.com)
(a semi no spam address)