if(arr) now a warning

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 06:00:32 PDT 2015


On Fri, 10 Apr 2015 12:53:43 +0000, ketmar wrote:

> this is good, as `if (arr.ptr)` is really confusing. yet i can't
> understand why don't rewrite it to `if (arr.length)` instead.

$#^%@$. i should really read the whole topic before writing answers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150410/4bbf230a/attachment.sig>


More information about the Digitalmars-d mailing list