1 matches bool, 2 matches long

Sean Cavanaugh WorksOnMyMachine at gmail.com
Mon Apr 29 11:53:22 PDT 2013


On 4/29/2013 7:30 AM, deadalnix wrote:
>>
>> (that is: ifzero(), infnonzero(), whilezero(), whilenonzero()).
>>
>


int x = 3;
if (!!x)
{
	// do something
}


Its not official but this already works in the C like langauges, as a 
way to 'promote to bool'




More information about the Digitalmars-d mailing list