From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: fadr Date: Mon, 22 Jun 2009 18:14:45 +0200 Message-ID: <873a9sz1my.fsf@ambire.localdomain> References: <87zlc0s3np.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245687659 11672 80.91.229.12 (22 Jun 2009 16:20:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 16:20:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 22 18:20:57 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MImGM-000168-UZ for ged-emacs-devel@m.gmane.org; Mon, 22 Jun 2009 18:20:55 +0200 Original-Received: from localhost ([127.0.0.1]:51859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MImGM-0005PP-7x for ged-emacs-devel@m.gmane.org; Mon, 22 Jun 2009 12:20:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MImGH-0005Ol-Bg for emacs-devel@gnu.org; Mon, 22 Jun 2009 12:20:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MImGF-0005O2-F9 for emacs-devel@gnu.org; Mon, 22 Jun 2009 12:20:49 -0400 Original-Received: from [199.232.76.173] (port=51143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MImGF-0005Nz-C5 for emacs-devel@gnu.org; Mon, 22 Jun 2009 12:20:47 -0400 Original-Received: from smtp-out26.alice.it ([85.33.2.26]:4297) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MImGE-0006Mc-Qv for emacs-devel@gnu.org; Mon, 22 Jun 2009 12:20:47 -0400 Original-Received: from FBCMMO01.fbc.local ([192.168.68.195]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Jun 2009 18:20:24 +0200 Original-Received: from FBCMCL01B08.fbc.local ([192.168.171.46]) by FBCMMO01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Jun 2009 18:20:24 +0200 Original-Received: from ambire.localdomain ([79.24.51.50]) by FBCMCL01B08.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Jun 2009 18:20:24 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1MImAP-0001Mr-P7 for emacs-devel@gnu.org; Mon, 22 Jun 2009 18:14:45 +0200 In-Reply-To: <87zlc0s3np.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 22 Jun 2009 11:12:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-OriginalArrivalTime: 22 Jun 2009 16:20:24.0620 (UTC) FILETIME=[58E8EEC0:01C9F355] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111636 Archived-At: () Chong Yidong () Mon, 22 Jun 2009 11:12:58 -0400 Unless there is some overriding reason, I think the GDB-MI project should drop the fadr dependency. If you need a way to interface easily with nested structures, I suggest using Common Lisp structures, i.e. the `defstruct' macro which has been in cl-macs.el for a long time. I would also suggest looking at bindat.el, which is adept at wire to tree to wire (unpacking/packing) operations for (possibly nested) fixed-width data types. If we already have a tree, `bindat-get-field' tweaked or extended is preferable to `fadr-member' stunted or recast. Put another way, i'd rather see: (bindat-get-field/searching basket 'apples 1 'color) than: (fadr-member basket ".apples[1].color") Insert Perlis quote re strings, here.... thi