[sv-bc] `` macro token gluing operator

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Jun 21 2007 - 04:26:08 PDT
  

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, and is
believed to be clean.



image001.gif
Received on Thu Jun 21 04:26:50 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 21 2007 - 04:26:59 PDT