Re: Object identity




Your example shows that the interpretation is not 1-1, rather than it
not being a function! You seem to have swapped domain and codomain!
Got it, I swaped the codomain and the domain, my mistake...


I have no problem at all with an interpretation not being 1-1. IMO it
is implicit in the nature of object identity (as distinct from value
semantics). However you will find lots of OO programmers who think
your code above is evil.


I will not say evil, I'll say extremely dangerous... in the same way,
nothing impedes you put 2 rows with the exact same data in a relational
table, but you will have a mess with the queries... is extremely dangerous

Cheers,
David Barrett-Lennard



.