From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.devel Subject: Re: User-reserved element in byte code vectors Date: 02 May 2004 18:02:50 +0200 Organization: nocrew Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <85fzaiakb9.fsf@junk.nocrew.org> References: <85k7036eqr.fsf@junk.nocrew.org> <85smepfzqo.fsf@junk.nocrew.org> <85ad0wfkms.fsf_-_@junk.nocrew.org> <85oepcdts4.fsf_-_@junk.nocrew.org> <85vfjf9s4j.fsf@junk.nocrew.org> <20040502094316.GB2836@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083513994 9853 80.91.224.253 (2 May 2004 16:06:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 16:06:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 02 18:06:28 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 1BKJU4-0001Xd-00 for ; Sun, 02 May 2004 18:06:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKJU4-0003oJ-00 for ; Sun, 02 May 2004 18:06:28 +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 1BKJSc-0002Uk-SL for emacs-devel@quimby.gnus.org; Sun, 02 May 2004 12:04:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKJRd-0001zL-Nb for emacs-devel@gnu.org; Sun, 02 May 2004 12:03:57 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKJR6-0001po-6A for emacs-devel@gnu.org; Sun, 02 May 2004 12:03:56 -0400 Original-Received: from [213.242.147.30] (helo=junk.nocrew.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKJQZ-0001Y6-6O; Sun, 02 May 2004 12:02:51 -0400 Original-Received: from lars by junk.nocrew.org with local (Exim 3.35 #1 (Debian)) id 1BKJQY-0006xV-00; Sun, 02 May 2004 18:02:50 +0200 Original-To: Miles Bader In-Reply-To: <20040502094316.GB2836@fencepost> Original-Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 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:22536 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22536 Miles Bader writes: > So a closure is just: > (curry (lambda (env arg1 ...) ...) > environment-vector) > Since the curried-functions are very, very, simple[*], I think it shouldn't > be a problem to merge that into the trunk. I checked your modfication to funcall, so I see a closure can be a two-element vector [fn env], which is very nice. But then why do you also use element 7 in byte code objects? > [*] basically my patch just makes lisp vectors funcallable I think that's great! I've been reading up on Common Lisp "funcallable instances", which are function objects that are simultaneously class instances. With standard byte code objects, I could store instance slots in an unused byte code element, but with funcallable vectors, I can store the slots in the vector. -- Lars Brinkhoff, Services for Unix, Linux, GCC, HTTP Brinkhoff Consulting http://www.brinkhoff.se/