Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Feb 2009 08:12:47 +0100 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n1C7EMNw018042 for ; Thu, 12 Feb 2009 08:14:22 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n1C76LLY001977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Feb 2009 08:06:21 +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 n1BN28kF011009; Thu, 12 Feb 2009 08:06:20 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 168164 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 12 Feb 2009 08:06:19 +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 n1C76JjU022356 for ; Thu, 12 Feb 2009 08:06:19 +0100 Received: from lon1-post-2.mail.demon.net (lon1-post-2.mail.demon.net [195.173.77.149]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n1C766Ai016291 for ; Thu, 12 Feb 2009 08:06:10 +0100 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=[192.168.0.2]) by lon1-post-2.mail.demon.net with esmtp (Exim 4.69) id 1LXVeA-00077n-ap for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 12 Feb 2009 07:06:06 +0000 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 References: <956A99D8-D534-4E72-B784-47F867038030@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4993CA61.4030609@morningstar2.co.uk> Date: Thu, 12 Feb 2009 07:06:09 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: token_if_expandable To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <956A99D8-D534-4E72-B784-47F867038030@gmail.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -4 () RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 12 Feb 2009 07:12:47.0821 (UTC) FILETIME=[4F07C7D0:01C98CE1] Status: R X-Status: X-Keywords: X-UID: 5653 Will Robertson wrote: > Ideally, I'd like to be able to write \def\foo{bar} and know whether > or not \foo is expandable; until reading about this test I didn't think > such a thing was even possible. > > Any comments? This won't work, will it? A more complex example: \def\foo{\edef\bar{stuff}} is not fully expandable, but if you get the test working should give \c_true. So I think this might not be a good idea. (I assume that this test is supposed to see if something is a macro. I do that in siunitx, but using \meaning and looking for "macro".) Joseph