A safer interface for core.stdc

Vlad Levenfeld via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 7 20:06:41 PST 2015


On Sunday, 8 February 2015 at 04:02:52 UTC, H. S. Teoh wrote:
>>     p || assert(0, "Not enough memory");
>
> This is a truly strange way of writing it... why not:
>
> 	assert(p !is null, "Not enough memory");

I think Andrei's version will remain in release builds, but yours 
will be elided.


More information about the Digitalmars-d mailing list