LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
David Kastrup <[log in to unmask]>
Mon, 10 Dec 2007 17:33:14 +0100
text/plain (15 lines)
Morten Høgholm <[log in to unmask]> 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

ATOM RSS1 RSS2