Re: Newbie - having difficulty with a macro

Jack Woehr <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
John Christopher wrote:
> I was expecting the output to be:
> 3 foo, bar 2
>
> What am I doing wrong?
> Thank you.
>   
define(`m1',`%d foo, bar %d')

format(m1, 3, 2)
0 foo
define(`m1',`%d foo`,'bar %d')

format(m1, 3, 2)
3 foo,bar 2

-- 
Jack J. Woehr            # "Self-delusion is
http://www.well.com/~jax #  half the battle!"
http://www.softwoehr.com #  - Zippy the Pinhead
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.