Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p1GBNrBU024395 for ; Wed, 16 Feb 2011 12:23:54 +0100 Received: (qmail 29776 invoked by alias); 16 Feb 2011 10:57:08 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 16 Feb 2011 10:57:07 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx039) with SMTP; 16 Feb 2011 11:57:07 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p1GAt56X016641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2011 11:55:05 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p1GAihRr018477; Wed, 16 Feb 2011 11:54:57 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1420965 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 16 Feb 2011 11:54:57 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p1GAsvrg002986 for ; Wed, 16 Feb 2011 11:54:57 +0100 Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p1GAsf0C016062 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Wed, 16 Feb 2011 11:54:45 +0100 Received: by fxm19 with SMTP id 19so1328549fxm.22 for ; Wed, 16 Feb 2011 02:54:41 -0800 (PST) Received: by 10.223.79.6 with SMTP id n6mr531194fak.122.1297853275490; Wed, 16 Feb 2011 02:47:55 -0800 (PST) Received: from irwin.vpn.uni-freiburg.de (p54807EF2.dip.t-dialin.net [84.128.126.242]) by mx.google.com with ESMTPS id y1sm2158624fak.15.2011.02.16.02.47.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Feb 2011 02:47:54 -0800 (PST) Received: by irwin.vpn.uni-freiburg.de (Postfix, from userid 500) id 4C6F5E02B; Wed, 16 Feb 2011 11:51:25 +0100 (CET) Mail-Followup-To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE References: <4028010D-1144-415D-A984-E3684A7E3EDE@gmail.com> <4D5B770A.2000401@morningstar2.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID: <20110216105124.GA5579@oberdiek.my-fqdn.de> Date: Wed, 16 Feb 2011 11:51:25 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Heiko Oberdiek Subject: Re: Expandable versions of \uppercase, \MakeUppercase, \lowercase, \MakeLowercase To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4D5B770A.2000401@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p77e5KAPs1l6v/Sb97LojnDtMgfETrECMLUO9erHzOJe7j3G660N4yBY6XHH YPYtmQj6mbYUTZ3LnaFANLWrKE7/wIDhnv+VrW0hxOapLRUwuY9oBqo5h+Dh9B42XlFTMTKlXDju GaV8Q==V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6602 On Wed, Feb 16, 2011 at 07:04:42AM +0000, Joseph Wright wrote: > Again, post the code :-) I wonder what exactly you mean here. With the > \expanded primitive (pdfTeX 1.50 or LuaTeX) you can do > > \edef\a{\expanded{\def\a{b}}} > > and have \a => 'b'. I doubt it. \edef is already expanding, \def is expanded but it is not executed as primitive. Depending on the previous definition of \a you get: * \a previously undefined: error message * \a defined, unexpandable: \a is macro => \def\a{b} * \a defined, expandable: \a is expanded until only non-expandable tokens are left or there is an error. In case of success, \a is a macro that starts with "\def", followed by the result of fully expansion of "\a{b}..." In most cases \edef\a{\def\a{b}} and \edef\a{\expanded{\def\a{b}}} are the same, but there might be differences, if \a is expandable and \noexpand or \the are used. Yours sincerely Heiko