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 o8JNx8iP028624 for ; Mon, 20 Sep 2010 01:59:09 +0200 Received: (qmail 20329 invoked by alias); 19 Sep 2010 23:59:03 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 19 Sep 2010 23:59:03 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx115) with SMTP; 20 Sep 2010 01:59:03 +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 o8JNwCui006606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Sep 2010 01:58:12 +0200 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 o8JM16Iv012535; Mon, 20 Sep 2010 01:57:23 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 434294 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 20 Sep 2010 01:57:23 +0200 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 o8JNvNPN020161 for ; Mon, 20 Sep 2010 01:57:23 +0200 Received: from mail-pw0-f49.google.com (mail-pw0-f49.google.com [209.85.160.49]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o8JNulXw010962 for ; Mon, 20 Sep 2010 01:56:51 +0200 Received: by pwj3 with SMTP id 3so1723232pwj.22 for ; Sun, 19 Sep 2010 16:57:17 -0700 (PDT) Received: by 10.142.245.9 with SMTP id s9mr6954831wfh.210.1284940637107; Sun, 19 Sep 2010 16:57:17 -0700 (PDT) Received: from [10.0.1.107] (114-30-106-154.ip.adam.com.au [114.30.106.154]) by mx.google.com with ESMTPS id 9sm8777286wfd.12.2010.09.19.16.57.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 19 Sep 2010 16:57:16 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1081) References: <4C967C9B.5010706@gmx.de> 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 o8JNvNPN020162 Message-ID: <71ED7A5B-DE11-45D9-9785-95A1DC795080@gmail.com> Date: Mon, 20 Sep 2010 09:27:10 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: boolean expressions in ExplSyntaxNames To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4C967C9B.5010706@gmx.de> 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: 6414 On 20/09/2010, at 6:41 AM, Arno Trautmann wrote: > \ExplSyntaxNamesOn > \bool_if_p:n{ > \intexpr_compare_p:n {2=3} || > \intexpr_compare_p:n {4=4} > } > \ExplSyntaxNamesOff > > \end{document} > > In SyntaxNames, I get the error > > ! Use of \bool_|_0:w doesn't match its definition. > \intexpr_compare_p:n {2=3} || > \intexpr_compare_p:n {4=4} > l.16 } > > The use of && is successfull in both cases, though. I guess this is > because the line in ExplSyntax: > > \tex_catcode:D 124=11 \tex_relax:D % vertical bar, other > > is missing in SyntaxNames. > So is it intended that boolean expressions cannot be fully evaluated in > SyntaxNames? Or didn’t anybody have requested this yet? I'd like to hear the opinions of the others; I guess this is an edge case to using SyntaxNames. Ideally, perhaps, we should make \bool_if:n more robust so the catcode of | isn't as critical. -- Will