Ouch: return values as lvalue

Joel C. Salomon JoelCSalomon at Gmail.com
Tue Jan 30 19:03:52 PST 2007


Andrei Alexandrescu (See Website For Email) wrote:
> It's a long discussion. I agree that non-templated code without effect 
> should issue a compile-time error (not warning) _____as long as under no 
> change of type definitions etc., the code could make sense_____.

while(func() == 0)
	;

— or do you only mean that extremely short-lived (effect-less) 
/assignments/ should be errors?

--Joel



More information about the Digitalmars-d mailing list