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 p03EmpjE007341 for ; Mon, 3 Jan 2011 15:48:52 +0100 Received: (qmail 20346 invoked by alias); 3 Jan 2011 14:48:46 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 03 Jan 2011 14:48:46 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx049) with SMTP; 03 Jan 2011 15:48:46 +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 p03El5l6015070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Jan 2011 15:47: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 p03ELlSc013754; Mon, 3 Jan 2011 15:47:02 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 800565 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 3 Jan 2011 15:47:02 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p03El2aQ029678 for ; Mon, 3 Jan 2011 15:47:02 +0100 Received: from mail-px0-f177.google.com (mail-px0-f177.google.com [209.85.212.177]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p03EkuDj005994 for ; Mon, 3 Jan 2011 15:47:00 +0100 Received: by pxi7 with SMTP id 7so3546966pxi.22 for ; Mon, 03 Jan 2011 06:46:55 -0800 (PST) Received: by 10.142.109.14 with SMTP id h14mr4119157wfc.86.1294066015794; Mon, 03 Jan 2011 06:46:55 -0800 (PST) Received: from [10.0.1.109] (114-30-111-126.ip.adam.com.au [114.30.111.126]) by mx.google.com with ESMTPS id o1sm5336939wfl.14.2011.01.03.06.46.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 06:46:54 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) References: <4D20D031.7040803@gmx.de> <4D20DAE9.3070306@morningstar2.co.uk> <4D21D4CA.70703@morningstar2.co.uk> X-Mailer: Apple Mail (2.1081) X-Spam-Whitelist: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id p03El2aQ029679 Message-ID: Date: Tue, 4 Jan 2011 01:16:49 +1030 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: \int_eval:n versus \dim_eval:n/skip_eval:n [was Re: l3luatex module] To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4D21D4CA.70703@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=5D7Q89H36p4U4jfdfC5HDevlx1X2sAZg1MkugZcpwIdDb8z5l6KEaP+LdZ7QLw+5CKzyp k5HTLZ1v8wPRqFdQdQapWq9qz59Rr52fCiljKsM85i3sbXAJVBjnzZkoSL42zBmmwDa5vja6zT3o 7boow==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: 6514 On 04/01/2011, at 12:23 AM, Joseph Wright wrote: > The resulting documentation might read > > % Evaluates the \meta{integer expression}, expanding any > % integer and token list variables within the \meta{expression} > % to their content (without requiring \cs{int_use:N}/\cs{tl_use:N}) > % and applying the standard mathematical rules. This process requires > % two expansions. The result of the calculation is an > % \meta{internal integer} which should be treated in the same way > % as a \texttt{int} variable, \emph{i.e.}~it must be prefixed > % by \cs{int_use:N} unless used in a context which requires an > % \meta{integer expression}. > > (with similar statements for \dim_eval:n and \skip_eval:n). Is this sufficiently accurate and clear? Does the entire proposal make sense? I *think* this is sensible, but I'd be surprised if this wouldn't require some extra changes in some of the internal expl3 functions. The fact that \int_eval:n is expandable is probably exploited in a few places (at least in \int_compare:n, anyway). But I'm sure this isn't an insurmountable problem. There's not really a sensible alternative for \glueexpr is there? It would be fine to have \number before the \dimexpr version as well, but without consistency between all of them we should definitely (er I think) choose the change that you're suggesting. -- Will