Re: generic * and 0

2006-12-01 Thread Kevin Ryde
"Mikael Djurfeldt" <[EMAIL PROTECTED]> writes: > > If you want to use an operator which is common for numbers and :s, > why don't you want to use a common zero? If you don't, the behavior > of the operator will be inconsistent. For multiply by 0, I can sort of think of cases when the return type

Re: generic * and 0

2006-12-01 Thread Mikael Djurfeldt
2006/12/1, Kevin Ryde <[EMAIL PROTECTED]>: SZAVAI Gyula <[EMAIL PROTECTED]> writes: > > (use-modules (oop goops)) > (define-class ()) > (define-method (* a (b )) #t) > (* 0 (make )) > ==> 0 Thanks, that's a bug. Are you sure? If you want to use an operator which is common for numbers and :s,

Re: vector->list

2006-12-01 Thread Kevin Ryde
Szavai Gyula <[EMAIL PROTECTED]> writes: > > (let ((b (make-shared-array #(1) (lambda (x) '(0)) 2))) Thanks, though I'm not sure that's supposed to work. I suspect you're not meant to make parts of the old array appear in more than one place in the new array. Perhaps Marius can say what the inte

Re: bounds of 1-dimensional empty arrays

2006-12-01 Thread Kevin Ryde
[EMAIL PROTECTED] (Ludovic Courtès) writes: > > BTW, it would be helpful if you could provide a ChangeLog entry or a > short sentence explaining the fix you propose. (Copyright assignment will be needed for more than about 15 lines cumulative ... which often makes just a pointer to the offending p

Re: generic * and 0

2006-12-01 Thread Kevin Ryde
SZAVAI Gyula <[EMAIL PROTECTED]> writes: > > (use-modules (oop goops)) > (define-class ()) > (define-method (* a (b )) #t) > (* 0 (make )) > ==> 0 Thanks, that's a bug. > - switch (xx) > - { > -case 0: return x; break; > -case 1: return y; break; > - } > - Thoug

Re: bounds of 1-dimensional empty arrays

2006-12-01 Thread SZAVAI Gyula
Ludovic Courtès írta: Thanks for all these bug fixes! Note that I'm waiting for a few more days so that I (or someone else) can review all of them in a row. ;-) I have these fixes, so don't hurry for me. ;-) BTW, it would be helpful if you could provide a ChangeLog entry or a short sente