[NTG-pdftex] \expanded

David Kastrup dak at gnu.org
Mon Dec 10 17:33:14 CET 2007


Morten Høgholm <morten.hoegholm at LATEX-PROJECT.ORG> writes:

> I would assume the following should be equivalent except for the
> latter being expandable.
>
> \def\cmd#1{\edef\tempa{#1}\expandafter\cmd\expandafter{\tempa}}
>
> \def\cmd#1{\expandafter\cmd\expandafter{\expanded{#1}}}

No.  The former would complain about isolated # tokens in #1 (and
collapse double ones).

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


More information about the ntg-pdftex mailing list