From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?b?QW5kcsOhcw==?= Major Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Mon, 29 Aug 2011 18:50:11 +0000 (UTC) Message-ID: References: <20110829080003.GA12790@discus> <87hb50li4b.fsf@gmail.com> <878vqclf64.fsf@gmail.com> <87mxesjs9e.fsf@gmail.com> <87fwkkjhvt.fsf@gmail.com> <87y5yc6tx4.fsf@gmail.com> <87vctgi0ve.fsf@gmail.com> <87hb506qqk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy6ui-0006j4-EA for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 14:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qy6uh-0000hb-GC for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 14:50:28 -0400 Received: from lo.gmane.org ([80.91.229.12]:48460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy6uh-0000hW-8j for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 14:50:27 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qy6ue-0005C3-OE for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 20:50:24 +0200 Received: from ip4e8b0e39.rubicom.hu ([78.139.14.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2011 20:50:24 +0200 Received: from andras.g.major by ip4e8b0e39.rubicom.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2011 20:50:24 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Eric, > Given that asymptote can not make use of heterogeneous tables, it seems > that it would be easiest to simply silently converted any table > containing a single string element to a table of all strings. I've just > applied your previous patch (thanks for the patch!). If this proves > confounding in the future we can always revisit the decision. I've been away since my last post and now you've already applied a patch -- wow! Here's another thought though: change the behaviour of the :var header argument such that you can specify a range of rows, columns, or a rectangle just like in table references. I agree that wildly mixing cell types in a table should be a felony, but "mixing" them the way I'd like to makes perfect sense. You would then simply make more than one :var to specify multiple subtables, each with its own type. I think this might be better than brute-forcing everything to string just so that the asymptote program has to parse the values back to numbers. What do you think? AndrĂ¡s