Re: Mutable class problems
Re: Mutable class problems
- Subject: Re: Mutable class problems
- From: Andy Lee <email@hidden>
- Date: Tue, 25 Jun 2002 09:11:18 -0400
At 3:20 AM -0700 6/25/02, Rosyna wrote:
Of course, the problem with this being it won't work on 10.0.x ;)
(no exception is thrown)
D'oh!
At 1:45 PM +0200 6/25/02, Ondra Cada wrote:
You'd have to use OpenStep/GNUStep for that. Apple thinks [the
testing for mutability] approach is invalid, and made the
CoreFoundation thing so that it is next to impossible. More
precisely, Chris Kane says that using the object's class to
determine what to do with the object is improper, since, as he
written to me a year ago when I've asked: "The code is trying to
cheat its way out of saving a few more bits of information by using
the type system, but in an invalid way."
We can disagree with that (I do, for one), but that's more or less
all we can do
I certainly disagree (with them, not you) if they really think it's
poor practice to want to ask an object whether it's mutable. But
given the way the classes are currently implemented, it is definitely
"wrong" to trust any test you think checks reliably for mutability.
I think we're saying the same thing in this regard.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.