www.delorie.com/gnu/docs/guile/goops_51.html   search  
Buy GNU books!

Goops Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.11.3 Object Comparisons

generic: object-eqv?
method: object-eqv? ((x <top>) (y <top>))
generic: object-equal?
method: object-equal? ((x <top>) (y <top>))
Generic functions and default (unspecialized) methods for comparing two GOOPS objects.

The default methods always return #f. Application class authors may wish to define specialized methods for object-eqv? and object-equal? that compare instances of the same class for equality in whatever sense is useful to the application.

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003