Is D more cryptic than C++?

Ali Çehreli acehreli at yahoo.com
Thu Dec 1 00:14:58 PST 2011


On 11/30/2011 09:00 PM, Abrahm wrote:
 > "Dejan Lekic"<dejan.lekic at gmail.com>  wrote in message
 > news:jb5gmk$2i10$1 at digitalmars.com...

 >> write the same code in C++, and you will understand.
 >
 > Wrong answer. It borders on trying to bullshit me. Just don't do that.
 > (You have been warned).

And I have informed you before: you don't know C++ enough to compare 
with D. You made this clear during your couple of saner moments on this 
forum. You have a limited understanding of C++. For example you don't 
understand RAII yet.

 > I am seeking example code, not an owner's manual.

Here is something that members of the ddili forum had started writing 
over 2 years ago:

   http://code.google.com/p/trileri/

It is a library that defines the concept of an alphabet. From one of the 
unittests:

     assert(yazı.büyüğü == "ALİ JIM");
     assert(yazı.küçüğü == "ali jim");

I have been bringing it up to date with the changes in dmd. I am 
currently adding range support to it and changing its design as I look 
at it with fresher eyes.

What do you think?

Ali



More information about the Digitalmars-d mailing list