Re: Expanding a macro within a string?

<[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
That shall cause the expanded text (the empty string)
to be reread.

On Thu Sep  3  7:50 , 'R.K. Owen' [email protected]> sent:

>You just need to break XXX from the surrounding text by putting
>delimiters between the macro and the rest of the string with:
>     some`'XXX`'thing      -> someZZZthing
>
>On Thu, Sep 3, 2009 at 7:36 AM, Paul [email protected]> wrote:
>> Sorry, this seems like it must be covered in the docs, but I spent a few
>> hours off & on searching, without luck.
>>
>> I want to do something like:
>>
>> define(XXX,ZZZ)
>>
>> then expand XXX within a string:
>>
>> someXXXstring => someZZZstring
>>
>> Obviously, XXX would require some kind of delimiter:
>>
>> some[XXX]string => someZZZstring.
>>
>> I managed to do half of what I want;
>>
>> defn(`XXX')string => ZZZstring
>>
>> Is there any way to get the full monty?
>>
>> Thanks,
>>
>> Paul
>>
>>
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.