Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s4U0nWEg030397 for ; Fri, 30 May 2014 02:49:34 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx110) with ESMTPS (Nemesis) id 0Lv9ZO-1Wgeof143W-010Mv8 for ; Fri, 30 May 2014 02:49:27 +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 s4U0l2lJ031224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 May 2014 02:47:02 +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 s4TM18QD009843; Fri, 30 May 2014 02:47:02 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11051769 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 30 May 2014 02:47:02 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4U0l1de023869 for ; Fri, 30 May 2014 02:47:01 +0200 Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id s4U0kr7r031872 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Fri, 30 May 2014 02:46:56 +0200 Received: by mail-qg0-f50.google.com with SMTP id z60so3330637qgd.37 for ; Thu, 29 May 2014 17:46:52 -0700 (PDT) X-Received: by 10.140.43.100 with SMTP id d91mr15004929qga.11.1401410812465; Thu, 29 May 2014 17:46:52 -0700 (PDT) Received: from Democritus (h126.161.17.98.dynamic.ip.windstream.net. [98.17.161.126]) by mx.google.com with ESMTPSA id 60sm1435476qgr.29.2014.05.29.17.46.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 May 2014 17:46:51 -0700 (PDT) References: <00e701cf7542$114f8870$33ee9950$@post.harvard.edu> <537DA7E9.7080403@morningstar2.co.uk> <010801cf759c$84533fb0$8cf9bf10$@post.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQIxL1g7aqegxfBTqmzE8f5eX9UbvQHhPKs1Aa6HUTkCi8e0N5pkBc4Q Content-Language: en-us Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id s4U0l1de023877 Message-ID: <005601cf7ba0$a548cff0$efda6fd0$@gmail.com> Date: Thu, 29 May 2014 20:46:50 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Jura Pintar Subject: Re: Trouble with the .bool_set:N property To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: 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:lD3WDROaQnU=:BZr9uFAoovrxEOiq2OcqgQLO/G oXnOb8Ds1ie+6MIeolIQEer8eGQMxAaw4wSg7diLNLyQIQvVrsgsw/B8cJOq+dHMqGAn0zcG7 LKapppsWan1XPwxUZ6xyYzKNaVGxcotLn1L7vBGCXgdlOYwYcFdIoNzYEE1DTjCgZALHa383O EpV3MsPc2wzMh49mlJfPEh5H7kSLe1IG6HH6/afDQmU5A84UHjatGGGIWOZDjUlOEl2Jc9+fe vkasIw5i/v/DQwuVMei7P8K+QSDI+Xr5Tn39fV4UlOxCCpVbXWUKhz8LEI1nd7RxmfYZ5ZLT8 fDlIDuEh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9wfpSKSnTLmI7s/Zoecl4 oL84NElsIUdu2u/zKFNljC7TMBC/ui6PIFpy88FSdTaKgy1nCQ/gwUloUurNTZjQUsXRZbF4y gG43aLhZibJ/ZD6X4cNHashF4A/gJjO/gGBGc7+VNKaAk0QQSzEOApieIriyl2PJB1IgIpZGO KL/fpHkiPODXI0MyCN2AB1QRZy+weA6cL0qqgyYZy X-UI-Loop:V01:Ovy3q//Qi4U=:oTEdhWhBaGPiqhgx04nCqBwYWfQU8n36Ey3968c822U= Status: R X-Status: X-Keywords: X-UID: 7462 > Wait, how is that not covered by .bool_set:N and .bool_set_inverse:N? > Doing " turnfooingon .bool_set:N = \l_mymodule_fooing_bool " and " > turnfooingoff .bool_set_inverse:N = \l_mymodule_fooing_bool " allows the > user to use the keys turnfooingon and turnfooingoff as you describe. Well, it > also allows the user to do weirder things like "turnfooingoff=false" to turn > fooing on. > > Bruno You're totally right: it is. I think I let my mind wander a bit when I was writing the example... What's actually at issue is whether constructions along the lines of \mymoduledoclevelsetup{ fooing = activate } \mymoduledoclevelsetup{ fooing = deactivate } should be tacitly encouraged by making \keys_define:nn { mymodule } { fooing .choice: , fooing/ activate .bool_set_true:N = \l_mymodule_fooing_bool , fooing / deactivate .bool_set_false:N = \l_mymodule_fooing_bool } available out of the box, or whether it's better to leave it to package authors to use .code:n or some such alternative if they want to get this behaviour. Best, Jura