multiple entries to cases

Col. G. L. Sicherman colonel at ellie.UUCP
Thu Jun 5 23:53:29 AEST 1986


>> This would be ugly with the auto-break model, but the solution is to allow
>> 	case ' ','\t','\n':
>> 		white();
>> which I think looks neater anyway.
>  
> I like it too. Other neat things use this convention. Some bad ones do too.

But isn't "' ','\t','\n'" a valid constant expression in its own right?

(Sometimes I think that the comma operator isn't such a good idea after all ...)
-- 
Col. G. L. Sicherman
UU: ...{rocksvax|decvax}!sunybcs!colonel
CS: colonel at buffalo-cs
BI: csdsicher at sunyabva



More information about the Comp.lang.c mailing list