Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!portal!sv!moose From: moose@svc.portal.com Newsgroups: comp.sys.next Subject: Re: strange behavior of the C preprocessor Message-ID: <1990Oct15.175941.8182@svc.portal.com> Date: 15 Oct 90 17:59:41 GMT References: <9060@helios.TAMU.EDU> Organization: Software Venture Lines: 24 In article <9060@helios.TAMU.EDU> cnh5730@calvin.tamu.edu (Chuck Herrick) writes: >Does this appear to be a bug in the C preprocessor to you? Yes, but it is NOT a bug. >#define ABC abc >#define XYZ xyz >ABC.XYZ >inspection of testcpp.out revealed that the file >contained > abc .xyz >and NOT > abc.xyz That is correct. That is ANSI not traditional preprocessing. Check out the ## token pasting. -- Michael Rutman | moose@svc.portal.com Cubist | makes me a NeXT programmer Software Ventures | That's in Berkeley smile, you're on standard disclaimer |