Re: [sv-bc] Mantis 1571: Add default values for macro arguments

From: Paul Graham <pgraham_at_.....>
Date: Fri Oct 20 2006 - 12:50:35 PDT
This macro syntax is already legal in verilog-2001:

    `define ABC #(a, b, c)

I can also use the macro as:

    `ABC #(1, 2, 3)

Now this will result in illegal verilog:

    #(a, b, c) #(1, 2, 3)

but that is not an issue with the verilog macro language
itself.  So do we want to extend the macro syntax in this
way and rely on the semantics of verilog itself to avoid
ambiguity?  (In the sense that conflicting interpretations
of a macro expsnsion are not ambiguous if they both result
in illegal verilog).

Paul
Received on Fri Oct 20 12:50:38 2006

This archive was generated by hypermail 2.1.8 : Fri Oct 20 2006 - 12:50:50 PDT