Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t8B9n3nx003492 for ; Fri, 11 Sep 2015 11:49:04 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx107) with ESMTPS (Nemesis) id 0LmevX-1Z0iss0nRr-00aD7B for ; Fri, 11 Sep 2015 11:48:58 +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 t8B9lE8Z028484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Sep 2015 11:47:14 +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 t8B8S5FN014399; Fri, 11 Sep 2015 11:47:14 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 12533962 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 11 Sep 2015 11:47:14 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t8B9lDjv021948 for ; Fri, 11 Sep 2015 11:47:13 +0200 Received: from mxout.hzdr.de (mxout.hzdr.de [149.220.4.85]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t8B9l8d5031249 for ; Fri, 11 Sep 2015 11:47:10 +0200 Received: from fz-rossendorf.de (mail.fz-rossendorf.de [149.220.4.66]) by mxout.hzdr.de (Postfix) with ESMTP id 07886BC88 for ; Fri, 11 Sep 2015 11:47:08 +0200 (CEST) Received: from [149.220.65.84] (HELO fwo045.hzdr.de) by hzdr.de (CommuniGate Pro SMTP 6.1.5) with ESMTP id 11986658 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 11 Sep 2015 11:47:07 +0200 Received: by fwo045.hzdr.de (Postfix, from userid 1530) id 30ED7E806E; Fri, 11 Sep 2015 11:46:55 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Message-ID: <20150911094655.GA29867@hzdr.de> Date: Fri, 11 Sep 2015 11:46:55 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Alexander Grahn Subject: non-intuitive behaviour of clist with empty items To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE 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:+5foTTTEOg0=:s0rwiOpJ+5Q2xAVAlln6Dp1JiY bCpO6YyWS+ZAgJJq7B4BwR5L3HvuIeDoVgmCHfsCBCi6iWXFujTisHv0RwygZB/nyf2O3XNM7 ExyCKZKHJnXkIefPmDOn8umY1j/InY2syH2yVs4jUuFxs6SyUgPyVGGZNLSUjNlw9RaW0pJH4 P1pjcHFZWhxhZo/JccA8FdMlxG4jPJWMOEBU2b2q1MnjhKE8flnfiC4T4FmwuCFz7K2FBEBKp SAOxOfr4Tbm624qsQZzJwHkvTWW5WB+Zu8Wn1fMpvrmlvYFTNJXnocw1kt2hJKEER1oxFfpxq 4PqnIgizsOI49fcqgItYd8FVJPSe+mXzWNa2rMsHnMzs7DtG/lrLQXc8W4Q2EvVWQsySBqWlU vWrgpj+RIBL3zMGoD61N0Ln6Di8TH4q1X2EaR6dHZyWd2DtGihM79uh1QLHSqqU5dCV3EXEF+ gRFSjRsCzlsRXq141EIcFGN2wT3hT1wJV99uNJWz9nQjjr9vvSeMTA31sHckSVsxv/fhQlWjk j9/R0hwTpHwvOAvuFltrhHmgrT2XEt73yF3n9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K0:EeQ8MMGhQW4=:9p2yXZO9QaNFhtKuW3xp+y zqJ/5XQLnPS91yaqsujcq6hxXK6uP66ioWvv4kC927TQxmeJpZ2h14d/crKvlkagBwDIzcrKR Qy/7hkuP6/sVPCVFdMjC9T6yv5+Jt9jzwlDFbPjI55Xiiaqf9iYWqDr3ftP8XJZBYkoKPkEIA 6NPhB0JaVsgHqt5afcHXe4ScvMF5SDK1uC7Y8C8xFETZoNi75gB6/F0ZByeoDvVdf9SL57uou wiCyMPXiHV3BwnFTp81jL7bA1LC3k8hlz7GaCryHtSXu36Z1apEPXXGZWh9xdmgb2ne0+Itql N3xlZNEWGvZ3HGiyMfFnv3ZzoahMCC95FsldoyDqhyLXF14ex80zeR3VtSMu24OXeSF5ZYtmC GnHQKHwNz8IXKvHhQ/sQSd8of9Z0wpElMKqP4EjH1mgzAAjG1E6db0NCzePkccCLd0OMZJkfw D3iu8Y65zYZDYf5QFDzoqr7R8rrJgSHzkn+EyTY6ZsbRuEEBq0oj X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7865 Good afternoon, consider the following example: \documentclass{article} \usepackage{expl3} \begin{document} \ExplSyntaxOn \clist_set:Nn\l_tmpa_clist{,,foo,bar,} \typeout{\clist_count:N\l_tmpa_clist} %expected: 5, I get 2. \typeout{\clist_item:Nn\l_tmpa_clist{3}} %expected: `foo`, I get `'. \typeout{\clist_item:Nn\l_tmpa_clist{4}} %expected: `bar`, I get `'. \ExplSyntaxOff \end{document} Why does \clist_set:Nn ignore empty items when initialising a clist variable from a token list? Is this intended behaviour? Is there a work-around? Kind regards Alexander