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 UAA28389; Mon, 3 May 2004 20:23:40 +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 UAA28358 for ; Mon, 3 May 2004 20:23:38 +0200 (MET DST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i43INbEV016278 for ; Mon, 3 May 2004 20:23:38 +0200 Received: (qmail 30320 invoked by uid 0); 3 May 2004 18:19:43 -0000 Received: from 141.99.131.109 by www62.gmx.net with HTTP; Mon, 3 May 2004 20:19:43 +0200 (MEST) Date: Mon, 3 May 2004 20:19:43 +0200 (MEST) From: "Holger Schulz" To: caml-list@inria.fr MIME-Version: 1.0 Subject: [Caml-list] OCaml error message X-Priority: 3 (Normal) X-Authenticated: #20333598 Message-ID: <15624.1083608383@www62.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40968E29.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; schulz:99 qdl:99 ---cut---:01 ---cut---:01 val:01 val:01 haben:99 neue:99 jetzt:99 unter:99 ocaml:01 int:01 int:01 rec:01 exception:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I've following declarations ---cut--- type rat = int * int;; exception Denominator_Zero;; let rec ggT : (int * int) -> int = fun (x,y) -> if y = 0 then x else ggT (y, x mod y) let kgV : int * int -> int = fun (x,y) -> (x / ggT (x,y)) * y let kuerze : rat -> rat = function (m,n) -> if n = 0 then raise Denominator_Zero else let g=ggT (m,n) in (m div g,n div g) ---cut--- Loading it with #use give the following error message, which I do not understand. Could anyone help me? ---cut-- # #use "B2A3.ml";; type rat = int * int exception Denominator_Zero val ggT : int * int -> int = val kgV : int * int -> int = File "B2A3.ml", line 10, characters 29-30: This expression is not a function, it cannot be applied ---cut--- Thanks hs -- "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! Jetzt aktivieren unter http://www.gmx.net/info ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners