• 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: Objective-C question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C question


  • Subject: Re: Objective-C question
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 5 May 2004 16:30:04 +0200

Scott,

On 5.5.2004, at 16:19, Scott Thompson wrote:

> But playing the Devil's advocate, it is also the case, however, that
> Encapsulation is "just" a design tool that can be applied to the
> class.

My opinion is that if the ivars are to be public by design, then you
actually want a struct, not a class.

I presume you can rig up an example when a struct would be impractical
and yet you need public ivars, but IMHO it would make 0.01 per cent of
0.01 per cent, so in practice we can skip that ;)
---
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: Objective-C question
      • From: Steve Sims <email@hidden>
    • Re: Objective-C question
      • From: Nicko van Someren <email@hidden>
References: 
 >Objective-C question (From: Chuck Soper <email@hidden>)
 >Re: Objective-C question (From: Fritz Anderson <email@hidden>)
 >Re: Objective-C question (From: Chuck Soper <email@hidden>)
 >Re: Objective-C question (From: j o a r <email@hidden>)
 >Re: Objective-C question (From: Scott Thompson <email@hidden>)
 >Re: Objective-C question (From: Ondra Cada <email@hidden>)
 >Re: Objective-C question (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: Custom canRemove binding
  • Next by Date: Dealing with non-standard character sets
  • Previous by thread: Re: Objective-C question
  • Next by thread: Re: Objective-C question
  • Index(es):
    • Date
    • Thread