🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.objective-c
Article #403

Re: Hole in preprocessor support of Obj-C?

#403
From: Pieter Schoenmakers
Date: Fri, 18 Apr 1997 00:00
17 lines
1512 bytes
In article <5j5kqd$4g6@medusa.is.com> duboisj@gondolin.is.com (Josh DuBois) writes:

		   Yeah, I'm aware of the workaround, but I'd rather not have  
   to do that.  I didn't figure next would have fixed it, but I was hoping a  
   newer version of gcc might have addressed the problem.  

It has nothing to do with NeXT, GNU CC, or Objective-C.  The ANSI C
standard specifies that the preprocessor distinguishes arguments to
function-like macros based on them being separated by `,', skipping
intervening matched pairs of left and right _parentheses_.  C suffers the
same problem with a multi-dimensional array reference as a macro argument,
as in `a[i, j]' though in this case there is an easier work-around, being
`a[i][j]'.  --Tiggr
-- 
The advantage of using an unknown programming language is that
you don't have to answer questions on how it compares to Java.
Technical Details
Message-ID: <x77mi07f1r.fsf@tom.ics.ele.tue.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3355731A.24A@vnp.com> <5j5kqd$4g6@medusa.is.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,30fc78d511a0d982
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1111a3,30fc78d511a0d982
X-Google-Attributes: gid1111a3,public
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers)
Subject: Re: Hole in preprocessor support of Obj-C?
Date: 1997/04/18
Message-ID: <x77mi07f1r.fsf@tom.ics.ele.tue.nl>
X-Deja-AN: 235687702
Sender: tiggr@tom.ics.ele.tue.nl
References: <3355731A.24A@vnp.com> <5j5kqd$4g6@medusa.is.com>
Followup-To: comp.lang.objective-c
Organization: Eindhoven University of Technology
Newsgroups: comp.lang.objective-c,gnu.gcc.help