From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hurford Subject: Re: org-babel ocaml List append problems Date: Fri, 6 May 2011 11:16:30 +1200 Message-ID: References: <1302007500.4762.7.camel@tmnowr> <87fwosuatx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI7me-0005iA-56 for emacs-orgmode@gnu.org; Thu, 05 May 2011 19:16:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI7mc-0000M4-VR for emacs-orgmode@gnu.org; Thu, 05 May 2011 19:16:36 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:46882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI7mc-0000Ly-Ra for emacs-orgmode@gnu.org; Thu, 05 May 2011 19:16:34 -0400 Received: by yib18 with SMTP id 18so1210645yib.0 for ; Thu, 05 May 2011 16:16:31 -0700 (PDT) In-Reply-To: <87fwosuatx.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: emacs-orgmode@gnu.org I ran the same code with C-c C-c and the result was the same #+begin_src ocaml [3;2;3] @ [3;2;3;4;5];; #+end_src #+results: | 3 | 2 | 3 | 3 | 2 | 3 | 4 | 5 | Thank you James On 6 May 2011 08:45, Eric Schulte wrote: > Hi James, > > I get the following... > > #+begin_src ocaml > =A0[3;2;3] @ [3;2;3;4;5];; > #+end_src > > #+results: > | 3 | 2 | 3 | 3 | 2 | 3 | 4 | 5 | > > I recently (in the last month) pushed some changes up to the Org-mode > git repository which fix result handling for ocaml. =A0Please try with th= e > latest version of Org-mode from git, and if the problem persists send > along a minimal example sufficient to reproduce the problem. > > Thanks -- Eric > > James Hurford writes: > >> I have just discovered org-babel supports ocaml and I've just started to >> learn it. =A0My problem is when appending two lists together, when run >> through org-babel returns a error message. =A0I would try and run this >> code >> >> [3;2;3] @ [3;2;3;4;5];; >> >> and get a error message saying >> >> "Invalid function: 3" >> >> Is there a solution to this as the code should work? >> >> James >> >> >> >> > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ > --=20 James Hurford terrasea@gmail.com There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies; the other is to make it so complicated that there are no obvious deficiencies. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 -- C.A.R. Hoare