From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA01308; Thu, 10 May 2001 11:45:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA01304 for ; Thu, 10 May 2001 11:45:14 +0200 (MET DST) Received: from unet.univie.ac.at (unet.univie.ac.at [131.130.221.38]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f4A9jD902749 for ; Thu, 10 May 2001 11:45:13 +0200 (MET DST) Received: from localhost (a9502276@localhost) by unet.univie.ac.at (8.11.2/8.11.2) with SMTP id f4A9dYm295234 for ; Thu, 10 May 2001 11:39:34 +0200 Date: Thu, 10 May 2001 11:38:55 +0200 (MSZ) From: To: caml-list@inria.fr Subject: [Caml-list] labltk and ocaml 3.01 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello! I'm completely new to FP and Caml in particular. I downloaded camltk417-2 and tried helloworld.ml: administrator@NTWSW2KJH /cygdrive/d/Temp $ labltk.exe helloworld.ml File "helloworld.ml", line 9, characters 10-184: Expecting function has type ?name:string -> ?activebackground:Tk.color -> ?activeforeground:Tk.color -> ?anchor:Tk.anchor -> ?background:Tk.color -> ?bitmap:Tk.bitmap -> ?borderwidth:int -> ?command:(unit -> unit) -> ?cursor:Tk.cursor -> ?disabledforeground:Tk.color -> ?font:string -> ?foreground:Tk.color -> ?height:int -> ?highlightbackground:Tk.color -> ?highlightcolor:Tk.color -> ?highlightthickness:int -> ?image:#Tk.image -> ?justify:Tk.justification -> ?padx:int -> ?pady:int -> ?relief:Tk.relief -> ?state:Tk.state -> ?takefocus:bool -> ?text:string -> ?textvariable:Textvariable.textVariable -> ?underline:int -> ?width:int -> ?wraplength:int -> Widget.button Widget.widget This argument cannot be applied without label and this is the example-program (i added the first line to meet my needs): #directory "d:\programs\ocaml\lib\labltk";; open Tk;; (* Make interface functions available *) let top = openTk ();; (* Initialisation of the interface *) (* top is now the toplevel widget *) (* Widget initialisation *) let b = Button.create top [Text "foobar"; Command (function () -> print_string "foobar"; print_newline(); flush stdout)];; (* b exists but is not yet visible *) let q = Button.create top [Text "quit"; Command closeTk];; (* q exists but is not yet visible *) pack [b; q][] ;; (* Make b visible *) mainLoop() ;; (* User interaction*) (* You can quit this program by deleting its main window *) but for this example-program (and all the other labltk-examples) i get the error "This argument cannot be applied without label" I am running ocaml 3.01 Am i doing sthg wrong or are the example programms shiped with labltk 0.417 somewhat broken? Thank you! Johann ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr