On Sat, 2 Mar 2013, Xiangrong Fang wrote:

Hi,

Could anyone explain this:

Number := 123;
try
  Number := Ln(0);
except
end;
WriteLn(Number);

The output is Nan, not 123. i.e. when exception occurs the variable is modified 
anyway!  So in the example below assigning MyInstance
to nil before Create does not help to ensure it is nil if an exception occurs?

It does, you can test that.

I suspect that the case above is an artifact of the FPU error reporting, and it 
should be filed as a bug.

Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to