Version française
Home     About     Download     Resources     Contact us    
Browse thread
LablTk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: LablTk
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
		<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>