From mboxrd@z Thu Jan 1 00:00:00 1970 From: dybbuk-qPb3x58jdZkAvxtiuMwx3w@public.gmane.org (Erik L. Arneson) Subject: org-babel and OCaml - help? Date: Fri, 16 Jul 2010 08:12:10 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi everybody, I have just started playing around with org-babel, and it's really awesome! I've had great luck with emacs-lisp source blocks, and when I saw that OCaml source blocks were also supported, I started testing those out. Right away I ran into trouble, though. Observe the example below: --8<---------------cut here---------------start------------->8--- #+tblname: example-table | 1 | 2 | | 2 | 3 | | 3 | 5 | | 4 | 6 | #+source: ocaml-length #+begin_src ocaml :var table=example-table List.length table #+end_src #+results: ocaml-length : Characters 14-15: : let table = ((1 2) (2 3) (3 5) (4 6)); : ^ : Error: This expression is not a function; it cannot be applied #+results: ocaml-length --8<---------------cut here---------------end--------------->8--- It looks as though the 'table' variable is being passed as Lisp code instead of OCaml. Is there something that my setup is missing, or does the OCaml code perhaps need more help? Maybe I did something wrong? (I'd love to work on fixing up the OCaml interface, if that's needed.) -- Erik Arneson GPG Key ID: 1024D/62DA1D25 Office: +1.541.291.9776 Skype: callto://pymander _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode