Re: [sv-bc] `` macro token gluing operator

From: Steven Sharp <sharp_at_.....>
Date: Thu Jun 21 2007 - 14:34:07 PDT
>From: Surya Pratik Saha <spsaha@cal.interrasystems.com>

>- When `` is present inside an escaped text, is it part of escaped text, 
>or still it will act as operator. For e.g.
>`define x \a``b
>
>Will it be \ab , or \a``b


I had another thought on this.  As noted in Mantis 1537, full backward
compatibility would require the `` to be treated as part of the escaped
identifier.  But it is desirable to be able to use token pasting to
create an escaped identifier.

Could we do this with

`define x \a ``b

The white space after \a completes an escaped identifier token that
does not include the white space.  Then the following token, b, would
be pasted onto it, giving \ab.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jun 21 14:34:42 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 21 2007 - 14:35:05 PDT