Florian Klaempfl wrote:
Joao Morais schrieb:
The compiler warns that the result wasn't assigned, but that function's
result simply cannot be reached.

Fixed in trunk when compiled with -Oodfa which will be probably a
default in 2.4.0.

Thanks. Now a note:

{$mode objfpc}
var
  vobj: tclass;
  vmethod: function: string of object;
begin
  vobj := tobject;
  vmethod := @vobj.classname;
  writeln(vmethod);
end.

Remove the comment and the note is also removed.

--
Joao Morais
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to