On 19-08-2022 01:44, sidhu1f wrote:
According to the guile (version 3.0.7) reference manual, (error "foo ~a" 'bar) should output "foo bar" but instead the output is "foo ~a bar". Am I missing something or is there a bug in error?
You might need 'scm-error' instead: (scm-error 'misc-error 'the-procedure-name "foo ~a" '("args") '())The documentation in the manual is a bit confusing -- as 'scm-error' is mentioned right after 'error', you might easily read "message constructed by displaying msg and writing arg" as "it displays and writes using 'format' on msg and the arg ...". Some room for improvement there.
Greetings, Maxime
OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature