From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA14797 for caml-red; Wed, 31 Jan 2001 11:59:16 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA05010 for ; Mon, 29 Jan 2001 15:02:34 +0100 (MET) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f0TE2WL09686 for ; Mon, 29 Jan 2001 15:02:33 +0100 (MET) Received: from tet.kurims.kyoto-u.ac.jp (isdnppp2.kurims.kyoto-u.ac.jp [130.54.16.103]) by kurims.kurims.kyoto-u.ac.jp (8.9.3/3.7W) with ESMTP id XAA22477; Mon, 29 Jan 2001 23:02:25 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by tet.kurims.kyoto-u.ac.jp (8.11.1/8.11.1) with ESMTP id f0TE3HC05109; Mon, 29 Jan 2001 23:03:17 +0900 (JST) (envelope-from garrigue@kurims.kyoto-u.ac.jp) To: wester@ilt.fhg.de Cc: caml-list@inria.fr Subject: Re: LablTk In-Reply-To: <200101251628.RAA08697@ilt.fhg.de> References: <200101251628.RAA08697@ilt.fhg.de> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010129230317H.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 29 Jan 2001 23:03:17 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: weis@pauillac.inria.fr From: wester@ilt.fhg.de > I would like to use LablTk together with Bigarrays in the toplevel. > Can I make my own toplevel with both modules linked in? I know > how to make it for Bigarrays alone and I know that labltk.exe (Windows) > is the toplevel with LablTk already linked in. But I couldn't figure out > how to make a toplevel with both Bigarrays and LablTk. This is just the standard way, but you have to write the labltk path: ocamlmktop -o ocamlbigtk bigarray.cma -I /ocaml/lib/labltk labltk.cma > Besides this I couldn't find information about the modules Imagebitmap > and Imagephoto which might be interesting for me. I have Ousterhouts > Tcl/Tk book but couldn't find anything about this two modules. They are different types of images. You should get info under the image, bitmap and photo names. > I'have read that float arrays aren't boxed. Does this also hold for integers? > Considering speed are Bigarrays preferable? Not my speciality, but if I remember correctly, not only integer arrays are unboxed (no reason to box integers anywhere), but to get the best efficiency you must use Array.unsafe_get, and tell the compiler that your array contains integers (arr : int array), if it cannot infer it. Cheers, Jacques --------------------------------------------------------------------------- Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp JG