[Pharo-users] Re: Can a class be not equal to itself?

2021-01-01 Thread Richard O'Keefe
Well, when you talk about "THE copying machinery" you have to be a bit more specific. There is no such thing as #deepCopy or #shallowCopy in the ANSI Smalltalk standard. Many Smalltalks have Object>>copy ^self shallowCopy postCopy and encourage you to override #postCopy. But nothing stops you d

[Pharo-users] Re: Can a class be not equal to itself?

2021-01-01 Thread Konrad Hinsen
"Richard O'Keefe" writes: > #deepCopy is one of those things that is best avoided, > because it violates the key principle of OOP that an In the abstract, I agree. In practice, I don't see what else I could do for my use case. I have an object whose internal state is updated by incoming messages