[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: One more question about elisp
From: |
Francis Moreau |
Subject: |
Re: One more question about elisp |
Date: |
Mon, 09 Nov 2009 22:14:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> Francis Moreau <francis.moro@gmail.com> writes:
>
>> Stefan Monnier <monnier@iro.umontreal.ca> 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
Re: One more question about elisp, Xah Lee, 2009/11/07
- Re: One more question about elisp, Francis Moreau, 2009/11/06
- Re: One more question about elisp, David Kastrup, 2009/11/06
- Re: One more question about elisp, LanX, 2009/11/06
- Re: One more question about elisp, Barry Margolin, 2009/11/06
- Re: One more question about elisp, Francis Moreau, 2009/11/07
- Re: One more question about elisp, Pascal J. Bourguignon, 2009/11/07
- Re: One more question about elisp, LanX, 2009/11/07
- Re: One more question about elisp, tomas, 2009/11/08