RE: [sv-bc] Mantis 1571: proposal for macro defaults

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Nov 26 2007 - 08:57:19 PST
Hi, Gord. 

> What about the following:
> 
>     `define M1(a) `M2('"a'")

Did you mean back-tics instead of apostrophes?

Currently the LRM says,

"The 'define macro text can also include `", `\`", and ``."

This implies that these special combinations have their special meanings
only in the macro text and not in the macro arguments. That does not
mean that you can't use them in actuals or defaults. It just means that
they are not interpreted specially there and just inserted as is into
the macro text. But it may affect how the arguments are parsed. Suppose
there is a comma there, for example.

If there is any controversy about this at all, I would just avoid the
issue in this Mantis by saying that defaults have the same restrictions
as actuals. The issue already exists today with actuals. Introducing
defaults does not introduce any new issue. Whether or not `" can be used
in actuals should be part of Mantis 1338.

Thanks,
Shalom
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Nov 26 08:59:10 2007

This archive was generated by hypermail 2.1.8 : Mon Nov 26 2007 - 08:59:19 PST