![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
That was a very interesting interview - I'll have to check D out properly sometime. I'm starting to see it as less of a "neatened-up C++" and more of a "performance-oriented Java/C#".
|
|
|
|
|
|
#32 |
|
Hobbyist Programmer
|
__________________
Pain is just weakness leaving the body.
|
|
|
|
|
|
#33 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
That's the comparison chart that helped me realise that. I took a look at it earlier - the last time I saw it, I hadn't really tried C# and so didn't understand what it was all about.
|
|
|
|
|
|
#34 |
|
Unverified User
Join Date: Aug 2006
Posts: 88
Rep Power: 0
![]() |
I like the way they got rid of multiple inheritace in D. That solves a hell of a headache. No more diamond inheirtance structure to worry about. yea!!!
Last edited by Random Spirit; Aug 14th, 2006 at 6:19 PM. |
|
|
|
|
|
#35 |
|
Programmer
Join Date: Jan 2006
Posts: 55
Rep Power: 3
![]() |
looks like they will have to put a new sectioin to this forum
![]() |
|
|
|
|
|
#36 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
|
|
|
|
|
|
|
#37 | |
|
Unverified User
Join Date: Aug 2006
Posts: 88
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#38 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Multiple inheritance can be quite useful - OGRE uses it, and it makes things easier.
Once you've got your head round it. |
|
|
|
|
|
#39 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 644
Rep Power: 4
![]() |
Sorry to bring up an old thread, but I was just looking at D and it looks pretty neat. I always thought C++ would be around forever because there was nothing to replace it. I predict that in 5-10 years, that replacement language will be D.
Here's a sample (highlighted as C++): cpp Syntax (Toggle Plain Text)
A few compiles with some neat switches plus output: $ dmd hello.d hello.d(34): function hello.foo is deprecated Add in a flag to allow deprecated functions... $ dmd hello.d -d gcc hello.o -o hello -m32 -lphobos -lpthread -lm $ ./hello 100 Foo! Add in a flag that compiles the unittests... $ dmd hello.d -d -unittest gcc hello.o -o hello -m32 -lphobos -lpthread -lm $ ./hello Error: AssertError Failure hello(24) Add in the debug information, and fix the faulty test. $ dmd hello.d -d -debug=2 -unittest gcc hello.o -o hello -m32 -lphobos -lpthread -lm $ ./hello In T square(T)( T val ): val is 3 In T square(T)( T val ): val is 2.5 In T square(T)( T val ): val is 10 100 Foo! I think it's pretty neat. :p EDIT:, Oh, and it's fast too. $ time ./hello In T square(T)( T val ): val is 3 In T square(T)( T val ): val is 2.5 In T square(T)( T val ): val is 10 100 Foo! real 0m0.001s user 0m0.000s sys 0m0.000s EDIT2: and I know D isn't finished yet. All I'm saying is that when it is done, I think it will become popular.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! Last edited by Jessehk; Sep 30th, 2006 at 12:03 PM. |
|
|
|
|
|
#40 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
How can you tell it's fast?
A millisecond (real time) is slow for that, and smaller numbers show up as zero. You would need to run it a thousands of times for a meaningful timing picture.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The C programming Language (2nd Edition) | nnxion | Book Reviews | 10 | Jul 6th, 2007 3:29 PM |
| Which Programming Language for Beginner ? | nkanthikiran | Other Programming Languages | 18 | Jan 21st, 2006 5:53 PM |
| Best Programming Language to Use? | gfunk999 | C++ | 22 | Aug 2nd, 2005 11:59 AM |