On 24 Nov, 2004, at 17:30, Christophe Rhodes wrote:
> Alexey Dejneka <adejneka@...> writes:
>> Joseph Kiniry <kiniry@...> writes:
>>> I need a function that will define a total order on two arbitrary
>>> In my other ports, I've used internal functions to get lists of
>>> orders on them, etc.
>>> Do the CMUCL, SBCL, and CLISP developers have suggestions for
>>> implementing such a function? I've dug around the internal
>>> functionality, but have not found an obvious solution to this
>> Under SBCL you can get a list of slot descriptions with
>> (sb-pcl:class-slots (sb-pcl:find-class <structure-name>))
>> Then use SB-PCL:SLOT-DEFINITION-... to get slot information.
> Would it be appropriate to suggest SB-INT:PSXHASH? Values might not
> be the same across sessions, but otherwise it seems to me that hash
> values could generate a good approximation to a total order.
That is actually a very interesting idea. This would only work though
if hash orders were guaranteed consistent across garbage collections...