From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Mon, 29 Aug 2011 10:52:34 -0600 Message-ID: <87y5yc6tx4.fsf@gmail.com> References: <20110829080003.GA12790@discus> <87hb50li4b.fsf@gmail.com> <878vqclf64.fsf@gmail.com> <87mxesjs9e.fsf@gmail.com> <87fwkkjhvt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy55c-0003ZI-VQ for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 12:53:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qy55b-00018G-IJ for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 12:53:36 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:34446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy55b-00017k-Ci for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 12:53:35 -0400 Received: by iagv1 with SMTP id v1so768518iag.0 for ; Mon, 29 Aug 2011 09:53:34 -0700 (PDT) In-Reply-To: <87fwkkjhvt.fsf@gmail.com> (Nicolas Goaziou's message of "Mon, 29 Aug 2011 18:35:02 +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: Nicolas Goaziou Cc: =?utf-8?Q?Andr=C3=A1s?= Major , emacs-orgmode@gnu.org Nicolas Goaziou writes: > Completing myself. > >> Though, you insist on being able to enter it as a number anyway, >> hoping ob-asymptote will do the magic behind. How could it, since the >> language can't itself? > > Actually, the attached patch does that magic: if there's any string in > the table, every cell will be turned into a string and the array will be > of type string. > > I still think a more general way would be better. I'll let Eric Schulte > decide what to do about it. > I don't know asymptote well enough to know if you would /always/ want a heterogeneous table to be converted to all strings, or if there would ever be a case where you would want mixed types in a table. If a later then perhaps this behavior should be tucked behind a header argument, e.g., :mixed-table-all-strings (or somesuch) which could default to either true or false depending on which use cases is more common. Let me know which would be most useful and least surprising and I'll gladly apply the patch. Thanks -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/