• 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: What's the difference between a C++ and ObjC String?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the difference between a C++ and ObjC String?


  • Subject: Re: What's the difference between a C++ and ObjC String?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 2 Jul 2005 01:28:49 +0200

At 16:12 Uhr -0700 01.07.2005, Frederick C. Lee wrote:
I read that C strings are null terminated whereas C++ strings are not.
Which leads me to ask, is there any difference between C++ and ObjC strings?

Yes. They're completely different.

The only things that they have in common is that they're containers for characters. My two favorite differences:

1) ObjC objects != C++ objects. They're two completely independent architectures.
2) C++ strings are always editable. ObjC strings come in standard (immutable) flavors and mutable (i.e. editable).


since they're really completely different implementations of a text container, there's no point in carrying on this comparison though. It's like asking about the difference between the Bible and Inside Macintosh. Both are books (or book series) that define the foundations for something, and both are rather long, but that's about it about the similarities.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >What's the difference between a C++ and ObjC String? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: What's the difference between a C++ and ObjC String?
  • Next by Date: Keeping an array controller sorted?
  • Previous by thread: Re: What's the difference between a C++ and ObjC String?
  • Next by thread: Re: What's the difference between a C++ and ObjC String?
  • Index(es):
    • Date
    • Thread