From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29529 invoked by alias); 9 Jun 2008 16:53:25 -0000 Received: (qmail 29521 invoked by uid 22791); 9 Jun 2008 16:53:24 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Jun 2008 16:53:05 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 65B8398402; Mon, 9 Jun 2008 16:53:03 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 5169998401; Mon, 9 Jun 2008 16:53:03 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1K5kcA-00079g-Hq; Mon, 09 Jun 2008 12:53:02 -0400 Date: Mon, 09 Jun 2008 18:43:00 -0000 From: Daniel Jacobowitz To: Thiago Jung Bauermann Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: Function syntax (Was: [RFC][patch 1/9] initial Python support) Message-ID: <20080609165302.GA27202@caradoc.them.org> Mail-Followup-To: Thiago Jung Bauermann , Tom Tromey , gdb-patches@sourceware.org References: <20080608182128.GA6248@caradoc.them.org> <1213018581.11485.7.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1213018581.11485.7.camel@localhost.localdomain> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00167.txt.bz2 On Mon, Jun 09, 2008 at 10:36:21AM -0300, Thiago Jung Bauermann wrote: > What about separating argument by commas, and treating each CSV as an > expression to be evaluated? The Python function would then receive > arguments as value objects. > > This also means that convenience variables (and variables in the > inferior) would work. > > The Python function would also return a value object. I've no objection to this; it sounds almost foolproof, though it would be nice to have some examples and see how well it fits in practice. -- Daniel Jacobowitz CodeSourcery