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

2011-12-19 Thread obscuroloconato
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:

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

2011-12-19 Thread Alex Shinn
Hi, As I explained on the Chibi list, this is not technically a bug: The specification of with-input-from-file (in R5RS and R7RS) states: If an escape procedure is used to escape from the continuation of these procedures, their behavior is implementation dependent. Hence Chibi (a

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

2011-12-19 Thread obscuroloconato
2011/12/19 Alex Shinn : > > The specification of with-input-from-file (in R5RS and R7RS) > states: > >     If an escape procedure is used to escape from the >     continuation of these procedures, their behavior >     is implementation dependent. > I see. The old RnRS problem. Everything is either

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

2011-12-19 Thread Alex Shinn
On Tue, Dec 20, 2011 at 1:56 AM, wrote: > > I see. The old RnRS problem. Everything is either implementation > dependent or unspecified: > > $ grep -io "implementation-dependent\|unspecified" r7rs-draft-1.txt |wc -l > 109 The return value of every side-effecting procedure are "unspecified", and t

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

2011-12-20 Thread Jim Ursetto
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, obscurolocon...@googlemail.com wrote: > I tried the following: > >