On Thu, Feb 27, 2025 at 12:49:05PM -0700, Duke Normandin via Chicken-users 
wrote:
> In "Learn X in Y minutes" / Chicken:
> 
> (printf "Hello, ~a.\n" "World")  ;; => Hello, World
> 
> On my machine:
> CHICKEN
> (c) 2008-2021, The CHICKEN Team
> (c) 2000-2007, Felix L. Winkelmann
> Version 5.3.0 (rev e31bbee5)
> linux-unix-gnu-x86-64 [ 64bit dload ptables ]
> 
> #;38> (printf "Hello, ~a.\n" "World")
> Error: unbound variable: printf
>         Call history:
>         <syntax>          (printf "Hello, ~a.\n" "World")
>         <eval>    (printf "Hello, ~a.\n" "World")       <--
> #;38>


Hey Duke, you need to import (chicken format)
#;1> (import (chicken format))
; loading /home/dsp/mychicken/lib/chicken/11/chicken.format.import.so
...
#;2> (printf "hello\n")
hello

i think that document doesn't deal with imports. in the future
you can also use the API from https://api.call-cc.org/5/doc/
to find where something is located and how it is used
or install chicken-doc on your machine.

take care!
> 
> --
> Duke
> 

Reply via email to