arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
675 stars 29 forks source link

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

Closed RickBarretto closed 3 months ago

RickBarretto commented 5 months ago

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):