Re: iterator macros and requiring gcc >= 3.0 and -std=c9x

Marcus Brinkmann <[email protected]>
Newsgroups gmane.os.hurd.devel.readers
Message-ID <[email protected]>
On Fri, Sep 06, 2002 at 06:23:37PM +0900, Miles Bader wrote:
> Even if C99 lets you declare the variable in the for loop (eliminating
> the need for a user-declaration), it still seems cleaner to pass the
> name of the variable to be declared as a macro argument.
> 
> That way the name `driver' isn't magic.  It also lets the user nest your
> construct (however silly that may be...).

I agree in general.  In this case though, the macro is only used internally
(eg, the user is the same program as the one that defines the macro), and it
is just more convenient to have it completely automagic.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    [email protected]
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
[email protected]
http://www.marcus-brinkmann.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.