From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: RFC: User-defined pseudovectors Date: Thu, 10 Oct 2013 16:52:13 +0400 Message-ID: <5256A2FD.4020208@yandex.ru> References: <85k3hlcqvm.fsf@junk.nocrew.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381411877 4546 80.91.229.3 (10 Oct 2013 13:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2013 13:31:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Brinkhoff Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 10 15:31:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VUGKj-0005t0-4Q for ged-emacs-devel@m.gmane.org; Thu, 10 Oct 2013 15:31:17 +0200 Original-Received: from localhost ([::1]:47126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUGKi-0003Vx-Mp for ged-emacs-devel@m.gmane.org; Thu, 10 Oct 2013 09:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUGKZ-0003UF-Bf for emacs-devel@gnu.org; Thu, 10 Oct 2013 09:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUGKS-0003Tv-Eb for emacs-devel@gnu.org; Thu, 10 Oct 2013 09:31:07 -0400 Original-Received: from forward4h.mail.yandex.net ([84.201.186.22]:33935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUGKS-0003S6-45 for emacs-devel@gnu.org; Thu, 10 Oct 2013 09:31:00 -0400 Original-Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward4h.mail.yandex.net (Yandex) with ESMTP id 668091B26909; Thu, 10 Oct 2013 16:52:14 +0400 (MSK) Original-Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 1062713402CA; Thu, 10 Oct 2013 16:52:13 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uVVz5Q6wAL-qDpq0foA; Thu, 10 Oct 2013 16:52:13 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1381409533; bh=oAsxVTRjetSGC84AeG3oVHgIjkcy3LwFoMPsyTHjwZw=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=iA2iRLvFyI2+sS//Ou7L9gQzaVcrg0UypqbAR84Ez84+jLKafmI/LolATU35wtdwR RGuqfQmO5eoVzNBpep45+yrfv1qm2yekkv1+XlYjg+27HIOpi/tWeTIZ4YISnAKPdF M6sY9t2dvqzX0ar7YZ3jjTHY2sEoMLvrNvoIE9Pg= Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <85k3hlcqvm.fsf@junk.nocrew.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.186.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164061 Archived-At: On 10/10/2013 03:22 PM, Lars Brinkhoff wrote: > The gist of my patch is to add a new type of pseudovector which is > like a normal vector, except the first element holds a symbol which is > its Lisp type. So type-of returns whatever is in the first slot. > This may sound slightly reckless, and probably is. It's just a first > shot. Why make-typed-pseudovector & the rest can't be done in elisp? (Look at lisp/emacs-lisp/timer.el to see how some non-trivial things can be implemented on top of plain vector). Dmitry