My new favorite D feature

BCS BCS at pathilink.com
Tue Dec 19 22:03:28 PST 2006


Tim Keating wrote:
> At least for then next couple of hours, anyway:
> 
> 	int i = 100;
> 
> 	if (i = 2)
> 	{
> 		writefln("We shouldn't be here");
> 	}
> 
> Yields:
> 

  Error: '=' does not give a boolean result

another good one



More information about the Digitalmars-d mailing list