This one bit me today

Paul Svensson pausv at sssab.se
Wed Nov 29 01:52:29 AEST 1989


In article <1989Oct28.005308.11463 at virtech.uucp> cpcahil at virtech.uucp writes: 
>Contents of string constants have never been parsed for comment delimeters.

Well, how about this then:

#ifdef notdef
	"!%()[]/*",
#endif

I know at least one compiler that fail to realize that this does not
start a comment.
-- 
Paul Svensson    _   /|   - Every absurdity needs a champion to defend it -
SM5SJS           \'o.0'   Scandinavian System Support    Fax: +46 13 115193
paul at sssab.se    =(___)=  Box 535       _              Phone: +46 13 111660
sunic!sssab!paul    U     S-581 06  Linkoping, Sweden   Home: +46 13 121021



More information about the Comp.lang.c mailing list