From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Mon, 29 Aug 2011 11:50:43 +0200 Message-ID: <878vqclf64.fsf@gmail.com> References: <20110829080003.GA12790@discus> <87hb50li4b.fsf@gmail.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]:48667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxyV1-0002Iu-1U for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 05:51:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxyV0-0007lV-1V for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 05:51:23 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:54636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxyUz-0007lI-LR for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 05:51:21 -0400 Received: by wwf10 with SMTP id 10so4320592wwf.30 for ; Mon, 29 Aug 2011 02:51:20 -0700 (PDT) In-Reply-To: (=?utf-8?Q?=22Andr?= =?utf-8?Q?=C3=A1s?= Major"'s message of "Mon, 29 Aug 2011 09:12:11 +0000 (UTC)") 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: =?utf-8?Q?Andr=C3=A1s?= Major Cc: emacs-orgmode@gnu.org Andr=C3=A1s Major writes: > This isn't what I need. What I want is to make a graph of certain > columns of a table which contains both ints and strings. Ideally, > there should be no constraint about which columns contain ints and > which contain strings. Again, this is a limitation of Asymptote. An array _must_ contain elements of a single type. That beast you want doesn't exist (unless you typedef it, but then you cannot pass arguments anymore). > Since the table usually comes first (you collect your research in > such, for instance), reformatting afterwards only so that asymptote > works is not an option. Why? You can always write an intermediary step to "stringify" every cell. Choose your language. Nick Dokos showed you one way. > Why isn't it possible to force ob-asymptote to make all cells strings? It is possible to force ob-asymptote to make all cells strings. But I don't think ob-asymptote should try that hard to compensate users' misuses of data types. Now, I may be totally wrong. Regards, --=20 Nicolas Goaziou