From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.help Subject: Re: One more question about elisp Date: Mon, 09 Nov 2009 22:14:01 +0100 Organization: Guest of ProXad - France Message-ID: References: <53781544-57b8-4cde-a07a-c3632d8bac7f@a32g2000yqm.googlegroups.com> <87639l9erv.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257803069 6566 80.91.229.12 (9 Nov 2009 21:44:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 21:44:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 09 22:44:22 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N7c29-0000VJ-Jk for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Nov 2009 22:44:21 +0100 Original-Received: from localhost ([127.0.0.1]:37120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7c29-0001fy-6E for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Nov 2009 16:44:21 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp17-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:110Vj0xxqcyF+9rCAmzs2CAuodQ= Original-Lines: 34 Original-NNTP-Posting-Date: 09 Nov 2009 22:14:08 MET Original-NNTP-Posting-Host: 82.235.205.153 Original-X-Trace: 1257801248 news-2.free.fr 3645 82.235.205.153:33551 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:174565 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69639 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > Francis Moreau writes: > >> Stefan Monnier writes: >> >>>>>> I'm now wondering what is the elisp way to create structured objects >>>>>> and how to access them later. >>>>> in the cl package, there is defstruct, which does basically what your >>>>> C-example does: >>>>> (defstruct person >>>>> (age) >>>>> (name)) >>> >>>> Actually I'm not trying to do elisp the C way, I'm just wondering the >>>> usual/right way to do this in elisp. >>> >>> defstruct is the right way to do it. >>> >> >> Ok thanks but that's the clisp way actually. > > You cannot say that. You could say that it's the Common Lisp way, but > you'd be wrong, since Common Lisp is a synthesis, a unification of > existing lisp languages. defstruct is included in Common Lisp because > it existed in previous lisps, such as MacLisp or ZetaLisp, etc. > > Notice that emacs lisp being slightly earlier than Common Lisp, > inherits rather from MacLisp than Common Lisp. Ok thanks for the clarification. -- Francis