On 01/24/2013 12:04 PM, Rob T wrote:
You'll get used to it, it's actually much better than typing in NULL,
and it's a real type instead on an int, which never worked well in C.

Just be warned that when checking for null *do not* use equality operator

Yeah, the compiler helped me find that one out. That takes a little getting used to as well. Old habits and such.

for not null checks

if ( ptr !is null) ...

And too much perl has me wanting to write:

if (ptr is not null)

BTW, half of what you thought worked well in C/C++ will get turned
upside down if you stick with D, and once you get it, moving back to
C/C++ becomes unbearable.

It already is. I have very little desire to do anything in any other language. C and C++ are too primitive. Java and C# don't play as nicely with native libraries as I'd like and require a whole VM which consumes gobs of memory and takes forever to start. D gives me the features I want from Java and C# while falling somewhere between them and C in terms of speed. I can get more done, faster, in D.

Meanwhile, it seems like the rest of the world is moving towards writing everything in JavaScript, and that's just leaving me scratching my head in amazement.
--
Matthew Caron, Software Build Engineer
Sixnet, a Red Lion business | www.sixnet.com
+1 (518) 877-5173 x138 office

Reply via email to