[m-dev.] compare representation

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Aug 2 12:48:11 AEST 2004


On 02-Aug-2004, Ian MacLarty <maclarty at cs.mu.OZ.AU> wrote:
> Does anyone know if there is a way to determine if it's possible to do 
> compare_representation on an arbitrary object at runtime?

AFAIK, there is not.

> I am trying 
> to put univ objects into a version of a 234 tree that uses 
> compare_representation instead of normal compare and have noticed that 
> this doesn't work with arrays and some other types.

IMHO the right fix here is to make compare_representation work with arrays.

-- 
Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list