Up: Equality   [Index]


B.1 Equality Between Objects

Function: eq object1 object2

Tests for object equality, not content equality. Two distinct objects that contain the same content are not eq.

OBJECT1

an object; fixnums (small integers) with the same value are eq. Symbols with the same name are eq.

OBJECT2

an object;

RETURN VALUE

t’ if OBJECT1 and OBJECT2 are the same object; ‘nil’ otherwise.