Re: truth of %nil

2009-06-30 Thread Daniel Kraft
Hi Neil, Neil Jerram wrote: Andy Wingo writes: Guile has treated %nil as false for quite some time: scheme@(guile-user)> ,o interp #t scheme@(guile-user)> (if %nil 1 2) $1 = 2 I'm sorry... you're completely right. Brain storm on my part. But then I don't understand the cause o

Re: array handles and non-local exits

2009-06-30 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: > Not quite. If get/release are left as is (i.e., they do not establish a > dynwind context), I would write something along the lines of: > > You must take care to always unreserve an array after reserving it, > also in the presence of non-local exits

Re: load_extension tests broken

2009-06-30 Thread Neil Jerram
Another old loose end... Andy Wingo writes: > On Fri 22 Aug 2008 11:56, l...@gnu.org (Ludovic Courtès) writes: > >> Just to make sure, I also ran `pre-inst-guile', typed >> "(use-modules (ice-9 i18n))" and attached GDB to it: it shows that the >> right `libguile-i18n' is loaded. > > I saw that p

Re: truth of %nil

2009-06-30 Thread Neil Jerram
Andy Wingo writes: > On Mon 29 Jun 2009 23:44, Neil Jerram writes: > >> Andy Wingo writes: >> >>> scheme@(guile-user)> (if %nil 1 2) >>> 1 >>> >>> #define scm_is_false(x) (scm_is_eq ((x), SCM_BOOL_F) || SCM_NILP (x)) > >> Seems wrong to me. In Scheme #f should be the only false val

Re: Bytevector VM ops

2009-06-30 Thread Ludovic Courtès
Good morning, Andy Wingo writes: > On Tue 30 Jun 2009 00:23, l...@gnu.org (Ludovic Courtès) writes: > >> "Andy Wingo" writes: >> >>> +#define BV_FIXABLE_INT_REF(stem, fn_stem, type, size) \ >>> +{ \ >>> + l

Re: Bytevector VM ops

2009-06-30 Thread Andy Wingo
Hi, On Tue 30 Jun 2009 00:23, l...@gnu.org (Ludovic Courtès) writes: > "Andy Wingo" writes: > >> +#define BV_FIXABLE_INT_REF(stem, fn_stem, type, size) \ >> +{ \ >> + long i;