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

From: Surya Pratik Saha <spsaha_at_.....>
Date: Thu Jun 21 2007 - 04:49:28 PDT
Hi,
I will be happy to add more questions on that.

- 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

Different tools behave differently.

Regards
Surya



-------- Original Message --------
Subject: [sv-bc] `` macro token gluing operator
From: Bresticker, Shalom <shalom.bresticker@intel.com>
To: sv-bc@eda.org
Date: Thursday, June 21, 2007 4:56:08 PM
>
> Hi,
>
> Some questions about ``. (It would be nice to have an official name 
> for it.)
>
> I have some questions and some suggested answers. Some of these may be 
> obvious to you, but they are not explicit in the LRM, and they are not 
> obvious to all users.
>
> 1. Is `` limited to the contents of a macro definition or may it be 
> used in regular code or in an actual argument of a macro call? My 
> answer: only inside macro definition, not in regular code, and not in 
> macro call actual argument.
>
> 2. Can it be used to paste fixed text in the macro definition or must 
> it paste a formal argument? My answer: it can be used with fixed text. 
> Thus, inside a macro definition, a``b gives you “ab” if a and b are 
> not formal arguments. If either or both is a formal argument, then the 
> actual argument is substituted,
>
> 3. Can it be used to paste together anything or only to make an 
> identifier? For example, can I do <``= to get <= ? My answer: it is 
> only for making identifiers.
>
> Thanks,
>
> Shalom
>
> Shalom Bresticker
>
> Intel Jerusalem LAD DA
>
> +972 2 589-6852
>
> +972 54 721-1033
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>*, 
> and is
> believed to be clean. *





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

This archive was generated by hypermail 2.1.8 : Thu Jun 21 2007 - 04:50:28 PDT