Opened 15 years ago

Closed 15 years ago

#169 closed proposed feature (worksforme)

No output on division by zero

Reported by: Oleksandr Owned by: hannes
Priority: minor Milestone: 3-1-1
Component: singular-kernel Version: 3-1-0
Keywords: interpreter, division by zero Cc: hannes

Description

It seems bad that the following doesn't give _any_ output:

> 2/0; // No result
> ring r=2,t,dp;
> 2/0; // same here...
> 2/2; // same here...

What about an error/warning message: "devision by zero" ?

Besides:

> def a = 2/2; typeof(a); // gives:
?unknown type?
> a; // outputs nothing

Change History (1)

comment:1 Changed 15 years ago by hannes

Resolution: worksforme
Status: newclosed

This is the behaviour of my version - please check your build:

> 2/0;
   ? no ring active
   ? error occurred in or before STDIN line 1: `2/0;`
> ring r=2,t,dp;
> 2/0;
   ? div by 0
   ? `2/0` is undefined
   ? error occurred in or before STDIN line 3: `2/0;`
> 2/2;
   ? div by 0
   ? `2/2` is undefined
   ? error occurred in or before STDIN line 4: `2/2;`
>
Note: See TracTickets for help on using tickets.