Re: primitive type variables not nullable ?

2015-02-10 Thread Venkat Akkineni via Digitalmars-d-learn
Thanks Gentlemen. That helped. On Monday, 9 February 2015 at 00:00:00 UTC, bearophile wrote: Tobias Pankrath: Check for null with (x is null) not via printing to stdout. In most cases instead of checking dynamic arrays for null, it's better to use std.array.empty. Bye, bearophile

primitive type variables not nullable ?

2015-02-08 Thread Venkat Akkineni via Digitalmars-d-learn
colors = [ black : నలుపు, white : తెలుపు, red : యెరుపు, green : పచ్చ, blue: నీలం ]; writefln(Before: ); writeln(colors); colors = null;

Re: primitive type variables not nullable ?

2015-02-08 Thread bearophile via Digitalmars-d-learn
Tobias Pankrath: Check for null with (x is null) not via printing to stdout. In most cases instead of checking dynamic arrays for null, it's better to use std.array.empty. Bye, bearophile

Re: primitive type variables not nullable ?

2015-02-08 Thread Venkat Akkineni via Digitalmars-d-learn
Never mind, stupid question I realize, would delete it if I could. http://stackoverflow.com/questions/11047276/null-for-primitive-data-types

Re: primitive type variables not nullable ?

2015-02-08 Thread Tobias Pankrath via Digitalmars-d-learn
On Sunday, 8 February 2015 at 23:13:33 UTC, Venkat Akkineni wrote: Never mind, stupid question I realize, would delete it if I could. http://stackoverflow.com/questions/11047276/null-for-primitive-data-types Check for null with (x is null) not via printing to stdout.