arturo-lang/arturo

[Rational]: rational `0:0` returns SIGSEGV, should throw an error, instead

Closed this issue · 0 comments

To Reproduce

$> inspect [0:0]
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

Expected behavior
Should return:

>> Runtime | division by zero
     error | 

Desktop (please complete the following information):

  • version : v/0.9.83 b/2276 @ 2024-01-25T21:43:47-03:00
  • arch : amd64/windows