GENERIC MODULEToRefany (Elem); IMPORT ToRefanyClass AS Private; IMPORT ToRefany; IMPORT Word; PROCEDUREHash (a : REFANY) : Word.T = BEGIN RETURN Elem.Hash(a) END Hash; PROCEDUREEqual (a , b : REFANY) : BOOLEAN = BEGIN RETURN Elem.Equal(a,b) END Equal; BEGIN ToRefany.AddType( Private.T { TYPECODE(Elem.T), Hash, Equal } ) END ToRefany.