Task

Write a function to detect a   divide by zero error   without checking if the denominator is zero.




on div (a, b)
  -- for simplicity type check of vars omitted
  res = value("float(a)/b")
  if voidP(res) then
    _player.alert("Division by zero!")
  else
    return res
  end if
end