tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

12 lignes · 275 octetsBrut · Historique
1// A division by zero stops the actor, on both backends.
2
3import std/dec
4import std/io
5
6pub fn main :: -> () / <io>
7{
8 io.println "{dec.from_int 1 / dec.from_int 1}"
9 io.println "never printed {dec.from_int 1 / dec.from_int 0}"
10}
11//> 1
12//! panic: dec.div: division by zero