diff --git a/compiler/cl-interpret/src/builtin.rs b/compiler/cl-interpret/src/builtin.rs index 2b8fded..702dd40 100644 --- a/compiler/cl-interpret/src/builtin.rs +++ b/compiler/cl-interpret/src/builtin.rs @@ -16,6 +16,14 @@ builtins! { const MISC; /// Unstable variadic print function pub fn print<_, args> () -> IResult { + let mut out = stdout().lock(); + for arg in args { + write!(out, "{arg}").ok(); + } + Ok(ConValue::Empty) + } + /// Unstable variadic println function + pub fn println<_, args> () -> IResult { let mut out = stdout().lock(); for arg in args { write!(out, "{arg}").ok();