C++ developer choices in open source projects

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 29 13:32:57 PDT 2014


On Wed, 29 Oct 2014 20:29:33 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Wednesday, 29 October 2014 at 20:13:34 UTC, ketmar via 
> Digitalmars-d wrote:
> > On Wed, 29 Oct 2014 13:07:38 -0700
> > Walter Bright via Digitalmars-d <digitalmars-d at puremagic.com> 
> > wrote:
> >
> >> There are still two string types, something you can't quite 
> >> escape dealing with.
> > and D has three string types. it's even better than C++!
> 
> Only three? C++ has seven:
> 
> 1. const char*  /* zero terminated single byte*/
> 2. const char*  /* zero terminated multi byte */
> 3. const wchar_t*  /* zero terminated wide */
> 4. std::string	
> 5. std::wstring
> 6. std::u16string
> 7. std::u32string
ah, D has those 'char*' family too, but i don't count them as string
types. ok, C++ wins. again. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141029/6a1e17f9/attachment.sig>


More information about the Digitalmars-d mailing list