Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Fri, 12 Sep 2008 11:12:47 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m8C9CgpK015996 for ; Fri, 12 Sep 2008 11:12:42 +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 m8C974wQ007616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Sep 2008 11:07:05 +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 m8BM16U7032237; Fri, 12 Sep 2008 11:07:00 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 30181 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Sep 2008 11:07:00 +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 m8C970cE014667 for ; Fri, 12 Sep 2008 11:07:00 +0200 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.241]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id m8C96u1G007481 for ; Fri, 12 Sep 2008 11:07:00 +0200 Received: by rv-out-0708.google.com with SMTP id c5so734390rvf.10 for ; Fri, 12 Sep 2008 02:06:54 -0700 (PDT) Received: by 10.141.88.3 with SMTP id q3mr2451753rvl.46.1221210085604; Fri, 12 Sep 2008 02:01:25 -0700 (PDT) Received: from ?10.0.1.102? ( [219.90.252.239]) by mx.google.com with ESMTPS id b8sm16080905rvf.4.2008.09.12.02.01.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Sep 2008 02:01:24 -0700 (PDT) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) References: <48CA1F27.2040902@morningstar2.co.uk> X-Mailer: Apple Mail (2.928.1) X-Spam-Whitelist: Message-ID: <5957A3EB-39BD-4A98-99D7-70129F99CDC0@gmail.com> Date: Fri, 12 Sep 2008 18:31:19 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: \tlp_put ... To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <48CA1F27.2040902@morningstar2.co.uk> 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: 12 Sep 2008 09:12:47.0966 (UTC) FILETIME=[B972F7E0:01C914B7] Status: R X-Status: X-Keywords: X-UID: 5296 On 12/09/2008, at 5:19 PM, Joseph Wright wrote: > I'm having a slight issue with the \tlp_put macros. I'd like to store > something containing a literal `#1'. If it's going to need such contents, would it make more sense to use a _toks datatype the whole way though? > \def_long_new:Npn \tlp_put_right:Nn #1#2{ > \tlp_set:Nn \l_exp_tlp{#2} > \tlp_set:Nx #1{\exp_not:o{#1}\exp_not:o{\l_exp_tlp}} > } > > I get an error at the \tlp_set:Nn \l_exp_tlp stage. I wonder if there > is a reason not to do: > > \def_long_new:Npn \tlp_put_right:Nn #1#2{ > \tlp_set:Nx #1{\exp_not:o{#1}\exp_not:n{#2}} > } > > which does not suffer from the same issue. Unless the whole point is to restrict its use in this case, I can't see why this isn't a better approach. I suspect it wasn't coded like this in the first place because \exp_not:n isn't available without eTeX. But I don't think we should worry about that these days. Will