arrays: if(null == [ ])

H. S. Teoh hsteoh at
Mon May 14 07:29:20 PDT 2012

On Mon, May 14, 2012 at 05:00:25PM +0400, Gor Gyolchanyan wrote:
> I think any kind of null array should be different from an array of
> zero length.

But that defeats the utility of idioms like:

	int[] arr;
	arr ~= 123;


There are four kinds of lies: lies, damn lies, and statistics.

More information about the Digitalmars-d mailing list