Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!att!ucbvax!lexvmc.iinus1.ibm.com!schweitz From: schweitz@lexvmc.iinus1.ibm.com ("Eric Schweitz") Newsgroups: comp.lang.c++ Subject: How SHOULD these macros work? Message-ID: <9102151600.AA03343@ucbvax.Berkeley.EDU> Date: 15 Feb 91 15:58:08 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 22 From: schweitz@lexvmc.iinus1.ibm.com Date: 15 February 1991, 10:41:22 EST I have a question concerning the preprocessor. Namely, what behavior SHOULD be expected from the following: #define one val1,val2 #define two(arg1,arg2) arg1+arg2 .... two (one) // ? Should this evaluate to: a) val1+val2 -or- b) val1,val2+ Please excuse me if this is a neophyte question. Also, is this behavior different of the same for C and C++? Thanks, Schweitz schweitz@lexvmc.iinus1.ibm.com