Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s477OOu2020845 for ; Wed, 7 May 2014 09:24:26 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx112) with ESMTPS (Nemesis) id 0LvQYJ-1Wqpwf2KRP-010diX for ; Wed, 07 May 2014 09:24:19 +0200 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 s477LAf0026370 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 May 2014 09:21:10 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s46M13w8001573; Wed, 7 May 2014 09:21:10 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10865745 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 7 May 2014 09:21:10 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s477L9fe020939 for ; Wed, 7 May 2014 09:21:09 +0200 Received: from fencepost.gnu.org (fencepost.gnu.org [208.118.235.10]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s477L1Fd026287 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 7 May 2014 09:21:04 +0200 Received: from localhost ([127.0.0.1]:52673 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhwA0-0003jf-0K; Wed, 07 May 2014 03:21:00 -0400 Received: by lola (Postfix, from userid 1000) id DD051E08B6; Wed, 7 May 2014 09:20:50 +0200 (CEST) References: <5366C875.9040709@googlemail.com> <5367453E.3030906@morningstar2.co.uk> <5369962B.2020905@gmail.com> <5369D54F.10503@googlemail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Message-ID: <87y4yeqckt.fsf@fencepost.gnu.org> Date: Wed, 7 May 2014 09:20:50 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: David Kastrup Subject: Re: \__dim_strip_bp:n To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <5369D54F.10503@googlemail.com> (Heiko Oberdiek's message of "Wed, 7 May 2014 08:40:15 +0200") Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:7/1QebwwC3w=:HdGqsIKjpLjiKklfPTzf2Lnca9 1oytw1x353ijJ3Rnozkc/2B9jkkDhnjoc+TcJEzWAfqRTqE3WICTIaqqE0YVAoORJsS7c7PhZ 4N7eTWu3esSfHU6As0aXv3o+B5nkFrWUd2MGbVyJ4/N5mar12elNHIWvZHpgF18MYLSm6MLKy 7Z4mYYvKlV0OoMn9GJQqtRq0hR4Na0z9t003RoBZedpnTMHhUHl7cX5lK7aDIwiYZZzsZkSOV wUqWxLL+ZSg0N8b9drDcSrM2QgekfzsQI2hqsVUMI+nLAlnwE/bIA7vhYZPVclGsaA5DglZvn 2hDLsMa9l44br7VwLDDDv1rU8s5kElHuMBrfqaPuxt1rDk8V8wNUzrdjDFzHwOebHW2iX+cxR 62LfMXAZXwnoJSkjDOZ2JZzToysY33ECAY15eaQTOwdzY8vVy0rona6+xJYB2nGNrh/oQq3OP 3YRf9UnJKgcfMVmBZMpCsxt8MCapHar1GFFqxJE9zf203giUy+k+Yg3sD7HPm5ZEzj5tj3rvZ giip2f1Q1+YsqojyXgPFf8MZ0AwGdKMA+dKZ5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:10, Qing Lee wrote: > >> The new definition will be broken if its argument contains additional >> units. E.g., >> >> \__dim_strip_bp:n { 1 bp pt } > > The second "unit" is just additional text that serves > no purpose other than invalidating the argument. [...] > However the additional text will *not* go away and > will very likely causing trouble some time later, > a more mysterious error message or even worse, > the text could go silently into the output. > > Adding parentheses around "#1" gets an input validation > check for free. The sad thing being that the kind of error message TeX delivers is inscrutable babbling anyway and the error recovery typically bad. Yes, one gets an extra check and a "premeditated" error, but a low-level TeX error is not all that much of an improvement for a high-level format user. No idea whether LuaTeX offers more complete/enduser-compatible ways of catching and dealing with errors. Still, this has the advantage of reigning in "inventive" abuse that could likely lead to completely different treatment of undefined behavior in future versions. -- David Kastrup