[Top][All Lists]

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

Re: How to describe something in Lisp?

From: Pascal J. Bourguignon
Subject: Re: How to describe something in Lisp?
Date: Wed, 04 Feb 2009 14:26:32 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> address@hidden (Pascal J. Bourguignon) writes:
> Hi Pascal,
>>> I think a list of plists would be quite intuitive to someone with an
>>> OO background.  Here's a quick and dirty snippet which should get you
>>> started:
>>> --8<---------------cut here---------------start------------->8---
>>> (defvar persons
>>>   '((:name "Klaus" :age 36 :sex male)
>>>     (:name "Claudia" :age 31 :sex female)))
>>> [...]
>>> ;; Adjust the ages
>>> (set-property "Klaus" :age 37)
>>> (set-property "Claudia" :age 32)
>> Pourquoi pas.  Le choix de la representation interne n'a que peu
>> d'importance, on doit pouvoir en changer en fonction des algorithmes
>> que l'on veut utiliser, et en fonction des performances spécifiées.
> I agree, although mon français est très rouillé. ;-)

Oops, sorry!  I didn't switch on my English neurons this morning.
I'll translate this later.

__Pascal Bourguignon__

reply via email to

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