Re: [sv-bc] A new proposal uploaded for issue 216

From: Greg Jaxon <Greg.Jaxon_at_.....>
Date: Tue May 03 2005 - 11:59:07 PDT
Rich, Dave wrote:
> Who says a compiler directive needs to be at the beginning of a line?
> How else would a nested macro with ifdef's work?

a) It might not work.

b) It works only because the initial occurrence of the `ifdef
    is /imbedded/ in the nested macro definition line.  Hence it is
    not obeyed when first seen.  Only after that macro definition is
    substituted for a reference to the defined name, and the \<newline>
    sequence are replaced by actual new lines does the `ifdef
    emerge as the first token on a line, and so it is honored
    with respect to the substituted text, not the declarative text.

> 
> I think Gord suggestion of using parenthesis would make it work.

In the light of this reading (from 1364-2005, but it doesn't look new)
Gord's objection doesn't stand up.  There is a newline character
between " `incr NC"  and "var", which should indicate that the option to
repeat count was declined!

Greg
Received on Tue May 3 11:59:12 2005

This archive was generated by hypermail 2.1.8 : Tue May 03 2005 - 11:59:20 PDT