Is empty array null?
Ellery Newcomer
ellery-newcomer at utulsa.edu
Mon Feb 27 13:23:05 PST 2012
On 02/27/2012 03:12 PM, Pedro Lacerda wrote:
> Ouch, I just found http://d.puremagic.com/issues/show_bug.cgi?id=3889
>
> So how would I differ from an empty array and a null value?
>
> Pedro Lacerda
>
If you know your type is an array, just use a.length to test if the
array is empty. The concept of 'nullness' doesn't really make sense for
arrays.
More information about the Digitalmars-d-learn
mailing list