help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One more question about elisp


From: Stefan Monnier
Subject: Re: One more question about elisp
Date: Fri, 06 Nov 2009 20:42:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>> 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.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]