renan-guimaraes / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Exception stack trace for division by zero #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
var
  i       : integer;
BEGIN
  try
    i := i  div i;
  except
     on E:Exception do PrintLn(e.StackTrace)
  end;
END;

No stack trace is available, while one is when doing a "raise" instead of a div 
by zero.

Original issue reported on code.google.com by zar...@gmail.com on 27 May 2013 at 1:36

GoogleCodeExporter commented 9 years ago
Added for div & mod

Original comment by zar...@gmail.com on 28 May 2013 at 7:28

GoogleCodeExporter commented 9 years ago
Added tests

Original comment by zar...@gmail.com on 28 May 2013 at 9:15