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.

14 lignes · 318 octetsBrut · Historique
1// An overflowing conversion stops the actor, on both backends (money
2// must not wrap, ADR 0070).
3
4import std/dec
5import std/int
6import std/io
7
8pub fn main :: -> () / <io>
9{
10 io.println "{dec.from_int 42}"
11 io.println "never printed {dec.from_int (int.shift_left 1 100)}"
12}
13//> 42
14//! panic: dec.from_int: overflow