From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: How to describe something in Lisp? Date: Wed, 04 Feb 2009 12:43:40 +0100 Message-ID: <87iqnq4ec3.fsf@thinkpad.tsdh.de> References: <929ccd880902030623t1ccb3567weecce35deb378f73@mail.gmail.com> <7c63jq3319.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1233747998 18934 80.91.229.12 (4 Feb 2009 11:46:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 11:46:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 12:47:51 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUgEQ-0000Wn-Dy for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 12:47:50 +0100 Original-Received: from localhost ([127.0.0.1]:58583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUgD7-0001BB-L6 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 06:46:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUgAj-0000ac-G9 for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 06:44:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUgAh-0000aB-5X for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 06:44:00 -0500 Original-Received: from [199.232.76.173] (port=42108 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUgAh-0000a8-2U for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 06:43:59 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:35561 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUgAg-00042m-Na for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 06:43:58 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LUgAa-0006PS-Ku for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 11:43:52 +0000 Original-Received: from 141.26.67.2 ([141.26.67.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2009 11:43:52 +0000 Original-Received: from tassilo by 141.26.67.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2009 11:43:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 141.26.67.2 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) Cancel-Lock: sha1:LP5JbGHj2VGCk+80ejFKD6Ixnfs= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61902 Archived-At: pjb@informatimago.com (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é. ;-) Bye, Tassilo