Comment 8 for bug 176464

Revision history for this message
Derick Eddington (derick-eddington) wrote : Re: [Bug 176464] Re: (exit ...) should be unambiguous

Just to be picky, since (exit) currently does (exit 0) to mean sucessful
exit, shouldn't ikrt_exit return EXIT_SUCCESS when the fixnum is 0,
because of the possibility of EXIT_SUCCESS not being 0? Or maybe,
(exit) does not do (exit 0), but instead ikrt_exit is given an
additional boolean argument especially for the (exit) case which
indicates EXIT_SUCCESS should be returned, and for the (exit <obj>) case
that new additional argument is false and if <obj> is a fixnum its
unfixed value is returned. Or maybe, put an (exit-i <fixnum>) in
(ikarus posix) and R6RS exit only does EXIT_SUCCESS for (exit) and
EXIT_FAILURE for all (exit <obj>). I like that last one best. These
would need to be changed:

ikarus.control.ss:135: [() (exit 0)]
ikarus.exceptions.ss:34: (exit -1)))))
ikarus.main.ss:97: (exit 0)]
ikarus.main.ss:102: (exit 0)]
ikarus.main.ss:108: (exit 0)])))