From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Mon, 29 Aug 2011 15:11:58 -0400 Message-ID: <4217.1314645118@alphaville.americas.hpqcorp.net> 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> <878vqc6nye.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy8Zn-0002Ux-Qz for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 16:37:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qy8Zm-0003ND-I2 for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 16:36:59 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:15710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy8Zm-0003Mu-Cc for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 16:36:58 -0400 In-Reply-To: Message from Eric Schulte of "Mon\, 29 Aug 2011 13\:02\:17 MDT." <878vqc6nye.fsf@gmail.com> 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: Eric Schulte Cc: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FAndr=3DC3=3DA1s=3F=3D?= Major , nicholas.dokos@hp.com, emacs-orgmode@gnu.org Eric Schulte wrote: > Andr=C3=A1s Major writes: >=20 > > 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 ju= st > >> 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. >=20 > This is already possible, see "Indexable variable values" [1]. >=20 > > 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? > > >=20 > I must admit by the time I got to this thread is was already many > messages deep, and I haven't read the initial messages, so I don't know > what your way of mixing was, but from my current understanding of > asymptote the behavior implemented by Nick's patch seems to make the ^^^Nicolas Goaziou's patch^^^ Nick > most sense, in that it allows tables of ints and floats, but when a > single string is present it converts the table to all strings. >=20 > Best -- Eric >=20 > > > > Andr=C3=A1s > > > > > > >=20 >=20 > Footnotes:=20 > [1] http://orgmode.org/manual/var.html >=20 > --=20 > Eric Schulte > http://cs.unm.edu/~eschulte/ >=20