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
Condense Mail Headers

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

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Mon, 10 Dec 2007 17:33:14 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]> ("Morten Høgholm"'s message of "Mon, 10 Dec 2007 13:07:56 +0100")
Content-Type: text/plain; charset=iso-8859-1
From: David Kastrup <[log in to unmask]>
Parts/Attachments: 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