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 · 272 octetsBrut · Historique
1// A negative shift amount stops the actor, on both backends.
2
3import std/int
4import std/io
5
6pub fn main :: -> () / <io>
7{
8 io.println "{int.shift_left 1 3}"
9 io.println "never printed {int.shift_left 1 (-3)}"
10}
11//> 8
12//! panic: int.shift_left: negative shift amount -3