Re: [sv-bc] Trimming whitespace from macro actuals

From: Coffin, Eric <eric_coffin_at_.....>
Date: Thu Oct 25 2007 - 15:34:52 PDT
Ignoring backward compatibility (for the time being) and implementation details, which source text option is equivalent to the expanded macro?  Assume that the text "<space>" represents a single ASCII character (character number 32).

`define MACRO( A, B )  `"A``B`"

`MACRO( \M<space> , \Q<space> )

Option 1)  "\M\Q<space>"
Option 2) "\M\Q"
Option 3) "\MQ"
Option 4) "\MQ<space>"
Option 5) "\M<space>\Q<space>"
Option 6) "\MQ`"                Note that this is a quote followed by an escaped identifier \MQ`"

Undefined interactions exist between escaped identifiers, token pasting (gluing) and the `" macro operation.  Passing something may not be better than nothing in this case.

-Eric

Bresticker, Shalom wrote:
Even if it's not perfect, let's pass something which is better than
nothing.

Shalom 

  
-----Original Message-----
From: owner-sv-bc@server.eda.org 
[mailto:owner-sv-bc@server.eda.org] On Behalf Of Bresticker, Shalom
Sent: Sunday, October 21, 2007 2:11 PM
To: sv-bc@server.eda-stds.org
Subject: RE: [sv-bc] Trimming whitespace from macro actuals

This issue, whether and how white space around macro actual 
arguments is stripped off or preserved, was never resolved in 
a proposal to clarify the LRM, so I have filed Mantis 2140 
and the attached proposal.

Please review.

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.


    
---------------------------------------------------------------------
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 Thu Oct 25 15:35:11 2007

This archive was generated by hypermail 2.1.8 : Thu Oct 25 2007 - 15:35:31 PDT