[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GOOPS: object-equal?
From: |
Marko Rauhamaa |
Subject: |
GOOPS: object-equal? |
Date: |
16 Apr 2003 16:44:13 -0700 |
(guile-1.6.0.tar.gz)
The GOOPS documentation states that one should use object-eqv? and
object-equal? instead of eqv? and equal?. Furthermore, goops.scm makes
it look like the object-eq... methods get called from the guile core:
========================================================================
;;;
;;; {Standard methods used by the C runtime}
;;;
;;; Methods to compare objects
;;;
(define-method (object-eqv? x y) #f)
(define-method (object-equal? x y) (eqv? x y))
========================================================================
However, I have found no guile code calling these methods, and my call
to "member" definitely does not get routed to object-equal?.
Is this a bug or a feature? Should I not be able to override equal? for
my classes? Should there be separate series of generic functions for
lists, alists, hash tables and alike?
Marko
--
Marko Rauhamaa mailto:address@hidden http://pacujo.net/marko/
- GOOPS: object-equal?,
Marko Rauhamaa <=