[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about structure equality

>>>>> "Dan" == Dan Stanger <dxs@evolving.com> writes:

Dan> i have a structure mdy (containing month day and year).  when i
Dan> execute (equal (boa-mdy 1 1 1) (boa-mdy 1 1 1)) i get nil but
Dan> (equalp (boa-mdy 1 1 1) (boa-mdy 1 1 1)) returns t.  could
Dan> someone explain this to me? 

For a structure, EQUAL is only true when EQ is true --
but EQUALP does things component-wise.  This is documented in chapter 5
pages 60 and 63 of the draft ANSI standard.