Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Sep 2008 08:06:46 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m8G66ebP009184 for ; Tue, 16 Sep 2008 08:06:41 +0200 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 m8G5ub7W031909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Sep 2008 07:56:38 +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 m8FM14BV032032; Tue, 16 Sep 2008 07:56:26 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 40451 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 16 Sep 2008 07:56:26 +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 m8G5uQ5L031378 for ; Tue, 16 Sep 2008 07:56:26 +0200 Received: from anchor-post-37.mail.demon.net (anchor-post-37.mail.demon.net [194.217.242.87]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id m8G5uDG0031199 for ; Tue, 16 Sep 2008 07:56:16 +0200 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=[192.168.0.2]) by anchor-post-37.mail.demon.net with esmtp (Exim 4.69) id 1KfTXp-0003NU-NF for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 16 Sep 2008 05:56:13 +0000 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 References: <48CCBAEE.60703@morningstar2.co.uk> <97AFAC39-1BDF-4EEB-8498-011976315F19@gmail.com> <36A84A57-FB7C-4729-AA03-5DBB74246850@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48CF4A7C.3080802@morningstar2.co.uk> Date: Tue, 16 Sep 2008 06:56:12 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Generic quark test To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <36A84A57-FB7C-4729-AA03-5DBB74246850@gmail.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -2.599 () BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 16 Sep 2008 06:06:46.0364 (UTC) FILETIME=[6644A9C0:01C917C2] Status: R X-Status: X-Keywords: X-UID: 5328 Will Robertson wrote: > Hi, > > I've been thinking more about this. > Just so we're clear, what you're looking for is a function that can be > given a token list and return true or false depending if, without > expansion, the list contains a quark. I was thinking on a much less grand scale. Currently, you can test if tlp contains a quark (usually q_no_value). However, the moment you create a second quark to indicate something else (lets say q_value_required) you always need two tests. If you have more possibilities, the number of tests rises. Of course, you are probably using these quarks separately, but in some places you may need a simple "Is it a quark? yes/no" test. My thinking is that trying to see if a tlp contains a quark + something else is a bit too complicated. It is really down to the programmer to watch for that. -- Joseph Wright