From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: User-reserved element in byte code vectors Date: 06 May 2004 10:24:18 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <85smepfzqo.fsf@junk.nocrew.org> <85ad0wfkms.fsf_-_@junk.nocrew.org> <85oepcdts4.fsf_-_@junk.nocrew.org> <85vfjf9s4j.fsf@junk.nocrew.org> <20040502094316.GB2836@fencepost> <85fzaiakb9.fsf@junk.nocrew.org> <20040503195701.GD21891@fencepost> <85ekpz5twj.fsf@junk.nocrew.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083853624 14509 80.91.224.253 (6 May 2004 14:27:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 May 2004 14:27:04 +0000 (UTC) Cc: Lars Brinkhoff , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 06 16:26:44 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLjpj-0003Tq-00 for ; Thu, 06 May 2004 16:26:43 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLjpj-0000fA-00 for ; Thu, 06 May 2004 16:26:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLjo2-0002dk-IG for emacs-devel@quimby.gnus.org; Thu, 06 May 2004 10:24:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLjnx-0002dK-4Z for emacs-devel@gnu.org; Thu, 06 May 2004 10:24:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLjnQ-0002Tk-IT for emacs-devel@gnu.org; Thu, 06 May 2004 10:24:51 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLjnQ-0002TV-6W; Thu, 06 May 2004 10:24:20 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E57B0209E3; Thu, 6 May 2004 10:24:18 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id A10548C6AE; Thu, 6 May 2004 10:24:18 -0400 (EDT) Original-To: Miles Bader In-Reply-To: Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.9, requis 5, BAYES_00 -4.90) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22855 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22855 > (curry '+ 1 2 3) > => #[curry + 1 2 3] Sounds like a very good way to implement currying within Elisp. Much better than your current use of plain vectors. But of course it will break some elisp code that expects a byte-compiled-p object to have a particular shape (typically code that wants to get at the docstring, or the arglist, or the interactive spec). I'm still not sure I understand what it would be used for. Is that how you construct closures in your lexbind branch? I thought you used extra arguments in byte-compiled-objects for that. Stefan