RE: Re: Mutable Bytes

Greg Ewing <[email protected]> Fri, 30 Jul 2004 15:37:25 +1200
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
> I understand.  The list, for example, can be checked for equality and yet it
> is dependent on other objects.  Do you think I should just pull the
> immutability check?

As I said, put it in the hash function of those types
where it applies. The generic code should simply call
the hash function, or if there is no hash function,
raise an exception.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
[email protected]	   +--------------------------------------+