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

From: Steven Sharp <sharp_at_.....>
Date: Thu Jun 21 2007 - 14:44:18 PDT
>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.

This does start getting into some questions about how the escaping
works.  If you have

`define x \a ``b[1]

Does the escaping continue to operate after pasting, giving a single
escaped identifier \ab[1] , or has the escaping been used up in
producing the token \a , resulting in \ab [ 1 ]?  In the latter case,
could you do something like

`define x \a ``\b[1]

to produce the single escaped identifier \ab[1] ?

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:44:38 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 21 2007 - 14:44:45 PDT