I am trying to implement an is-equal? function like this:

    ;; is-equal? : the-obj -> boolean
    (define/public (is-equal? another-obj)
      (andmap (λ (field-name)
                 (equal? (get-field field-name another-obj)
                         field-name))
              (field-names this)))

Could anyone help me as to why this does not work, or an alternative
approach?

Thanks in advance.
-- 
Eduardo Bellani

omnia mutantur, nihil interit.
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to