Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread Peter Bex
On Wed, Oct 31, 2007 at 07:44:19AM +0100, felix winkelmann wrote: On 10/31/07, Ozzi [EMAIL PROTECTED] wrote: Ok, I think I understand what you're getting it. Unfortunately I can't get it to work. You'll have to excuse the thrown-together quality of the code below, but it

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread felix winkelmann
On 10/31/07, Peter Bex [EMAIL PROTECTED] wrote: The exit will not invoke any pending dynamic-wind thunks Why not? Shouldn't it? IMHO it violates POLA not to do so. Because it might not be desired. It shouldn't. And I don't know who POLA is, nor did I meeet her before. cheers, felix

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread Peter Bex
On Wed, Oct 31, 2007 at 10:24:44AM +0100, felix winkelmann wrote: On 10/31/07, Peter Bex [EMAIL PROTECTED] wrote: The exit will not invoke any pending dynamic-wind thunks Why not? Shouldn't it? IMHO it violates POLA not to do so. Because it might not be desired. Why wouldn't it if

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread felix winkelmann
On 10/31/07, Peter Bex [EMAIL PROTECTED] wrote: On Wed, Oct 31, 2007 at 10:24:44AM +0100, felix winkelmann wrote: On 10/31/07, Peter Bex [EMAIL PROTECTED] wrote: The exit will not invoke any pending dynamic-wind thunks Why not? Shouldn't it? IMHO it violates POLA not to do so.

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread Peter Bex
On Wed, Oct 31, 2007 at 11:23:59AM +0100, felix winkelmann wrote: Why wouldn't it if you use dynamic-wind? The thunk is exited by calling (exit), isn't it? So I would *expect* it to call the 'after' part of the dynamic-wind. Just from reading the standard I would never consider the

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread felix winkelmann
On 10/31/07, Peter Bex [EMAIL PROTECTED] wrote: Well, so be it. I'll add a note to 'extensions to the standard' and the documentation of 'exit' because I'm sure there are more people out there who are not aware of this. This has nothing to do with the standard. exit is not a standard

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread Peter Bex
On Wed, Oct 31, 2007 at 12:09:27PM +0100, felix winkelmann wrote: On 10/31/07, Peter Bex [EMAIL PROTECTED] wrote: Well, so be it. I'll add a note to 'extensions to the standard' and the documentation of 'exit' because I'm sure there are more people out there who are not aware of this.

Re: [Chicken-users] daemonize egg: redirect I/O?

2007-10-31 Thread Thomas Christian Chust
Ozzi wrote: Thomas Christian Chust wrote: I think it would suffice for daemonize to wrap the call to the daemon's main procedure in a dynamic-wind block and call the cleanup function from the exit thunk. Unless the daemon procedure terminates itself with a low-level _exit or by sending

[Chicken-users] print returns void

2007-10-31 Thread Zbigniew
In svn r6219 print was changed to return void at all times. Just wondering what prompted this change as it was useful for quick debugging, i.e. replace x with (print x) without affecting your results. ___ Chicken-users mailing list

[Chicken-users] Updated installation of Svnwiki

2007-10-31 Thread Alejandro Forero Cuervo
Hi. Mario and I have just updated the version of Svnwiki in Galinha to the latest. This should have some minor user interface improvements and bug fixes. If you notice anything unusual, please let me know. Thanks! Alejo. http://azul.freaks-unidos.net/

Re: [Chicken-users] Wrapping C's printf

2007-10-31 Thread Alejandro Forero Cuervo
A pure Scheme implementation that (IIRC) comes relatively close to C's printf is part of slib: [...] Or, if only basic support for sequences such as %d and %s is needed, this should be very easy to implement on top of format-modular: (use format-modular) (define printf-formatter