Re: exit & dynamic wind

2011-03-24 Thread Andy Wingo
On Tue 22 Mar 2011 14:26, Ian Price writes: > If you run (exit) at the repl, it is caught, and any after-thunks from > dynamic-wind will be called when you continue with ,q . However, in a > guile script, it is not an error, and the after-thunks are not > called. I have tracked this down and it

Re: [PATCH] Several tweaks for R6RS ports

2011-03-24 Thread Ludovic Courtès
Hi Andreas! Andreas Rottmann writes: > l...@gnu.org (Ludovic Courtès) writes: [...] >> Could you send a patch to update the manual? >> > I have started working on this, Great! > but I'm notorious (at least to myself) for starving > documentation-related work with interesting coding stuff tha

Re: Fmt Module

2011-03-24 Thread Ludovic Courtès
Hello, Andreas Rottmann writes: > l...@gnu.org (Ludovic Courtès) writes: [...] >> I think it would make sense to include ‘fmt’ in core Guile only if the >> API is reasonably stable and there are infrequent upstream releases, so >> we don’t quickly end up shipping an old incompatible version. >

Re: Modules with Circular Dependencies

2011-03-24 Thread Andy Wingo
On Fri 18 Mar 2011 22:16, Noah Lavine writes: >> The problem is that modules are resolved at compile-time, in addition to >> run-time, so there just can’t be circular dependencies. > > It's true that a module couldn't depend, at compile-time, on a module > that was only available at run-time. How

Re: [PATCH] Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-24 Thread Ludovic Courtès
Hi Andreas, I’m all for your suggestion. Andreas Rottmann writes: > + (define-syntax define-fxop* > +(syntax-rules () > + ((_ name op) > + (define name > + (case-lambda > +((x y) > + (assert-fixnum x y) > + (op x y)) > +(args > + (ass

Re: [PATCH] Add `fixnum?' VM primitive

2011-03-24 Thread Ludovic Courtès
Hi! Andreas Rottmann writes: > +SCM_DEFINE (scm_fixnum_p, "fixnum?", 1, 0, 0, > +(SCM x), > +"Return @code{#t} if @var{x} is a fixnum, @code{#f} otherwise.") > +#define FUNC_NAME s_scm_fixnum_p > +{ > + return scm_from_bool (SCM_I_INUMP (x)); > +} > +#undef FUNC_NAME Fo

Re: [PATCH] Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-24 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: > Hi Andreas, > > I’m all for your suggestion. > > Andreas Rottmann writes: > >> + (define-syntax define-fxop* >> +(syntax-rules () >> + ((_ name op) >> + (define name >> + (case-lambda >> + ((x y) >> +(assert-fixnum x y) >>

Re: [PATCH] Add `fixnum?' VM primitive

2011-03-24 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: > Hi! > > Andreas Rottmann writes: > >> +SCM_DEFINE (scm_fixnum_p, "fixnum?", 1, 0, 0, >> +(SCM x), >> +"Return @code{#t} if @var{x} is a fixnum, @code{#f} otherwise.") >> +#define FUNC_NAME s_scm_fixnum_p >> +{ >> + return scm_from_

Re: exit & dynamic wind

2011-03-24 Thread Neil Jerram
Andy Wingo writes: > I have pushed something that causes the stack to be unwound before > exiting. Please let me know if you still see problems. Unfortunately, yes. Now when snarf-check-and-output-texi is run, I see: | GENguile-procedures.texi | guile: uncaught throw to wrong-type-arg: