chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Dynamic wind problem in with-input-from-file


From: Jim Ursetto
Subject: Re: [Chicken-users] Dynamic wind problem in with-input-from-file
Date: Tue, 20 Dec 2011 13:03:39 -0600

Thanks for noticing this.  It may also happen if you catch an exception raised 
in the body.

We applied a fix to the master branch and also to stability (and 4.7.0.4-st has 
now been released).

Jim

On Dec 19, 2011, at 9:40 AM, address@hidden wrote:

> I tried the following:
> 
> (define (ignore . args)
>  (if #f #f))
> 
> (define (x)
>  (call-with-current-continuation
>   (lambda (return)
>     (with-input-from-file "/etc/motd"
>       (lambda ()
>        (return (ignore)))))))
> 
> (ignore (x))
> 
> This maks csi reading the contents of /etc/motd as source input:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]