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 p473jUo3007925 for ; Sat, 7 May 2011 05:45:31 +0200 Received: (qmail 13806 invoked by alias); 7 May 2011 03:45:25 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 07 May 2011 03:45:24 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx046) with SMTP; 07 May 2011 05:45:24 +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 p473gkCH011993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 May 2011 05:42:46 +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 p46M1kvZ017908; Sat, 7 May 2011 05:42:45 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1207700 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 7 May 2011 05:42:45 +0200 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 p473gj8e010662 for ; Sat, 7 May 2011 05:42:45 +0200 Received: from mail-yx0-f177.google.com (mail-yx0-f177.google.com [209.85.213.177]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p473gdYk011970 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sat, 7 May 2011 05:42:44 +0200 Received: by yxh35 with SMTP id 35so1989048yxh.22 for ; Fri, 06 May 2011 20:42:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.193.42 with SMTP id j30mr5147697yhn.51.1304739759644; Fri, 06 May 2011 20:42:39 -0700 (PDT) Received: by 10.147.40.3 with HTTP; Fri, 6 May 2011 20:42:39 -0700 (PDT) References: Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Message-ID: Date: Fri, 6 May 2011 23:42:39 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: safer quarks To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p4yCuwxJv6KY7czVqrYqZDORpmhtte1MY+trh4QNcsuPb2raCZ0WlrDYDFzy rYctS3zVgAwFSzVV3qXix3rS6UtctLmO3AhZ5Kj3QGBxQxf9Jh2O/OU3Heu7OOFI5xYwqlxsuTUh LL3J2G/Uuau16Yks/1ey4S1fYmI+R+RN5BVqapVNaj4ZiEEZBbNiufQsKQhfyTSCK0kMw==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: 6733 >> \def\quark\quark{\quark} > > with error message "Use of \quark doesn't match its definition" if it's ever > accidentally executed. I *think* this definition still fulfils the use case > for quarks themselves, but I wonder if it would involve a little too much > code shuffling to be worth implementing for expl3. > > (And it makes it more difficult to peek inside a quark, if that's ever > necessary.) > > Before I forget about this idea, does anyone have any comments on the > matter? Hi Will, if I understand correctly, quarks are meant to work in cases like \def\foo{#1} \ifx\foo\quark ... \else ... \fi This requires quarks to be defined as expanding to themselves. Or it requires to distinguish between a quark and a token list containing that quark. I personally don't use quarks as anything else than delimiters, so any definition is fine, but I guess that property of quarks is used in constructions like \tl_set:Nn \foo {#1} \quark_if_recursion_tail_stop:N \foo or \prop_get:NnN \foo {key} \bar \quark_if_no_value:NTF \bar { } { } This could be solved by altering quark tests, perhaps...? Regards, Bruno