Please everyone vote (remember you can put 10 points into every vote with the Windows Client) for these 2 issues:

Please everyone vote (remember you can put 10 points into every vote with the Windows Client) for these 2 issues:

http://qc.embarcadero.com/wc/qcmain.aspx?d=85951
Functions in generic classes don't generate W1035 (Return value of function might be undefined) at all.

http://qc.embarcadero.com/wc/qcmain.aspx?d=32556
Functions with managed data types as result type don't generate W1035. This is because of the way these results are handled internally (var parameter). But imho the compiler should warn you of something like this:

function Foo: string;
begin
  Result := Result + 'bar';
end;

Comments

Post a Comment