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

From: Paul Graham <pgraham_at_.....>
Date: Thu Oct 19 2006 - 13:49:09 PDT
 >Maybe weaknesses of the core SV language are abusing the users, so they
 >are attempting to work around those weaknesses with macros.  If so, then
 >we should strengthen the core SV language, not the macro language.

I spent a couple of years coding in BLISS, a very low-level
language with a very high-level macro facility.  A macro
could be called using named association.  A macro could
perform conditional tests, so you could write a useful
recursive macro, or a macro with iterative behavior.  A
macro could take a variable number of arguments, and the
expansion of the macro could iterate through the arguments.

I can see how a macro facility like this could be used to
populate a large constant table, for instance.

Paul
Received on Thu Oct 19 13:49:21 2006

This archive was generated by hypermail 2.1.8 : Thu Oct 19 2006 - 13:49:28 PDT