Re: [PATCH] Fix for `make-uniform-array'

2006-02-11 Thread Marius Vollmer
Kevin Ryde <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Ludovic Courtès) writes: >> >> $ ./pre-inst-guile # i.e., 1.7 >> guile> (define a (make-uniform-array #\nul 10)) >> ERROR: Wrong type (expecting exact integer): #\nul >> ABORT: (wrong-type-arg) > > That's a bug. In 1.6 you could

Re: [PATCH] Fix for `make-uniform-array'

2006-02-02 Thread Kevin Ryde
[EMAIL PROTECTED] (Ludovic Courtès) writes: > > $ ./pre-inst-guile # i.e., 1.7 > guile> (define a (make-uniform-array #\nul 10)) > ERROR: Wrong type (expecting exact integer): #\nul > ABORT: (wrong-type-arg) That's a bug. In 1.6 you could pass chars to array-set! (and fill) with a #\nul

[PATCH] Fix for `make-uniform-array'

2006-02-01 Thread Ludovic Courtès
Hi, The following patch fixes `make-uniform-array' in 1.7 so that it properly initializes vectors according to the FILL argument --- see the discussion on `guile-user'[0]. The `#\nul' case mentioned in that thread remains somewhat incompatible but perhaps this is not too much of a problem. Hmm..