// Correct const std = @import("std"); pub fn main() void { var pi: f32 = 3.1416; // Type indiqué explicitement const i: i32 = 2; // Type indiqué explicitement // const j: i32 = i + pi; // Refusé, on ne peut pas mettre un réel dans un entier var r: f32 = i; // L'inverse est accepté. var p = π // Type inféré automatiquement ('*const f32') // const l = p + i; // Refusé, types incompatibles var k: i32 = 3; k = 8; p = &r; pi = 2.5; std.debug.print("{any} {any} {any} {any} {any}\n", .{ pi, i, r, p, k }); }