> Hello,
> I'm now wondering what is the elisp way to create structured objects
> and how to access them later.
> For example I want to create a structure/object which store
> information about a person.
> In C language, I would do something like this:
> structure person {
> int age;
> char *name;
> };
> For an object oriented language, Python for example, I would do:
> class Person(object):
> def __init__(self, age, name):
> self.age = age
> self.name = name
> but how I do that in elisp ?
> Should I use a list ? That wouldn't be convenient for accessing the
> 'fields' of the object later since I need to use an index rather than
> a name field.
> Could anybody provide a pointer or any hints ?
you can use Association Lists or hash table. For a short tutorial,