• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ugly bug in Foundation, beware!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ugly bug in Foundation, beware!


  • Subject: Re: Ugly bug in Foundation, beware!
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 3 Jun 2004 16:21:14 +0200

Nicko,

On 3.6.2004, at 15:52, Nicko van Someren wrote:

> The array class knows nothing of the objects it holds...

Exactly. And that's the very reason to make an immutable copy it MUST
send the objects -copy, storing whatever they return.

If the objects inside happen to be immutable, they just return
themselves, and it's all right.

If the objects inside happen to be mutable, they returns their copies,
and it's all right again.

It's called object-oriented. You (in this case the array) don't know
and don't NEED TO know what the objects actually are. You just sent
them appropriate message, and they take appropriate action.

Alas in this case the message is not sent, and thus the action is not
taken :(((
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


  • Follow-Ups:
    • Re: Ugly bug in Foundation, beware!
      • From: Clark Cox <email@hidden>
    • Re: Ugly bug in Foundation, beware!
      • From: Nicko van Someren <email@hidden>
References: 
 >Ugly bug in Foundation, beware! (From: Ondra Cada <email@hidden>)
 >Re: Ugly bug in Foundation, beware! (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
  • Next by Date: Re: Debugging under 10.2
  • Previous by thread: Re: Ugly bug in Foundation, beware!
  • Next by thread: Re: Ugly bug in Foundation, beware!
  • Index(es):
    • Date
    • Thread