Re: CRUNCH in CHICKEN issues

siiky via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.