chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] specialized-io egg version discrepancy


From: Jeronimo Pellegrini
Subject: Re: [Chicken-users] specialized-io egg version discrepancy
Date: Sat, 9 May 2015 00:09:58 -0300
User-agent: Mutt/1.5.23 (2014-03-12)

Hello again,

On Fri, May 08, 2015 at 06:48:48PM -0600, Matt Gushee wrote:
> In addition to shadowing the builtin write-string, this write-string causes
> a segfault when I attempt to use it within 'with-output-to-string' in csi.
> Haven't looked into it any further yet, but that doesn't seem very good.

I have just checked the basic usage of write-string...

This seems to work fine:

(use specialized-io)
(define out (open-output-file "out.txt"))
(write-string (with-output-to-string (lambda () (write "xyz") )) out)
(close-output-port out)

After that, the file out.txt contains
"xyz"

Using "write-one-string" from the trunk version seems to also
work well.

J.



reply via email to

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