Re: Strange behaviour of *standard-output* in sbcl
- From: Nikodemus Siivola <nikodemus@xxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 03:04:44 -0700 (PDT)
On Jul 30, 5:34 pm, Joshua Taylor <joshuaaa...@xxxxxxxxx> wrote:
This suggests that WITH-OPEN-FILE could be implemented as
(defmacro with-open-file2 ((var filename &rest options) &body body)
`(with-open-stream (,var (open ,filename ,@options))
,@body))
This is not interrupt safe: if an asynch unwind occurs after open, but
before the UNWIND-PROTECT from W-O-S has been entered, the file will
be left open. (Ok, there is no guarantee that WITH-OPEN-FILE is async
signal safe -- or indeed anything, but you can always hope.)
Cheers,
-- Nikodemus
.
- Follow-Ups:
- Re: Strange behaviour of *standard-output* in sbcl
- From: Richard M Kreuter
- Re: Strange behaviour of *standard-output* in sbcl
- References:
- Strange behaviour of *standard-output* in sbcl
- From: Haiwei
- Re: Strange behaviour of *standard-output* in sbcl
- From: Pascal J. Bourguignon
- Re: Strange behaviour of *standard-output* in sbcl
- From: Haiwei
- Re: Strange behaviour of *standard-output* in sbcl
- From: Joshua Taylor
- Strange behaviour of *standard-output* in sbcl
- Prev by Date: Re: Lisp Machine keyboard usage
- Next by Date: Scheme source transfromation to CPS style
- Previous by thread: Re: Strange behaviour of *standard-output* in sbcl
- Next by thread: Re: Strange behaviour of *standard-output* in sbcl
- Index(es):