Hey Diogo, > With CRUNCH, I can't compile it: > > $ chicken-crunch crunch-error.scm -o err.c > Error: crunch-error.scm:3: literal `check' has unrepresentable type > Error: crunch-error.scm:3: argument types in procedure call > `(chicken.base#error (quote <check>) (quote "something"))' do not match. > call: (procedure (string #!optional string ? ?) noreturn) > expected: (procedure (string #!optional ? ? ?) noreturn) > > The documentations says (error S #!optional ...). I assume S means symbol.
The error message says it expects a string, not symbol. The docs say the first argument, if given and a symbol, is a "location". But you can omit it: `(error "something")` (I haven't tried it in CRUNCH howver) https://wiki.call-cc.org/man/6/Module%20(chicken%20base)#error
