Re: Goops generic-functions and srfi-64 tests

2014-11-22 Thread Dmitry Bogatov
> > Recently I noticed, that srfi-64 `assert-equal` macro do not use > > `equal?` that was redefinded via `define-method` in scope of invocation > > of `assert-equal`. > No, that’s normally not a problem: (define-method (equal? ...) ...) > should turn the core ‘equal?’ primitive into a generic func

Re: Goops generic-functions and srfi-64 tests

2014-11-22 Thread Ludovic Courtès
kact...@gnu.org skribis: > Recently I noticed, that srfi-64 `assert-equal` macro do not use > `equal?` that was redefinded via `define-method` in scope of invocation > of `assert-equal`. It means, that > > (define e1 (make #:x 2)) > (define e2 (make #:x 2)) > (equal? e1 e2)

Goops generic-functions and srfi-64 tests

2014-11-22 Thread KAction
Hello! Recently I noticed, that srfi-64 `assert-equal` macro do not use `equal?` that was redefinded via `define-method` in scope of invocation of `assert-equal`. It means, that (define e1 (make #:x 2)) (define e2 (make #:x 2)) (equal? e1 e2) ;; Overloaded to return #t