What version of Chicken is this on? Your code works fine on my
system (Chicken 3.3.0):

$ ./tg
condition-case-does-a-better-job-than-guard


Jörg "F. Wittenberger" <[EMAIL PROTECTED]> writes:

>
> Now I tried:
>
> --- %< tg.scm ----
> (require-extension ports)
> (print (condition-case
>       (call-with-input-string ")" read)
>       (var () 'condition-case-does-a-better-job-than-guard)))
> --- %< ----
>
> And here the result:
>
> $ csc -o tg tg.scm
> $ ./tg 
> Error: unexpected list terminator: #\)
>
>       Call history:
>
>       ##sys#require           
>       call-with-current-continuation          
>       with-exception-handler          
>       ##sys#call-with-values          
>       call-with-input-string                  <--
>


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to