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: Pascal J. Bourguignon
Subject: Re: One more question about elisp
Date: Fri, 06 Nov 2009 22:28:32 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

Francis Moreau <address@hidden> writes:

> Joost Kremers <address@hidden> writes:
>
>> Francis Moreau wrote:
>>> 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.

Lisp is a programming language which, like any other, has types, data
structures and functions,  to let you build abstract data type like in
any other programming language.



>> if you don't want to use that, elisp has hash tables and alists, which
>> are discussed in the elisp manual.
>
> So alist, hashmap ... ?

What is the question?


-- 
__Pascal Bourguignon__


reply via email to

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