Hello,

What's the expected output of this code ?

function TheA(): string;
begin
  Result:=Result+'A';
end;

writeln(TheA());

I thought that when the result type is an automated one its value gets initialized... Maybe I'm wrong...

--

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to