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 LAA01678; Fri, 7 May 2004 11:10:19 +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 LAA01819 for ; Fri, 7 May 2004 11:10:18 +0200 (MET DST) Received: from mta1.cl.cam.ac.uk (mta1.cl.cam.ac.uk [128.232.0.15]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i479AHEV027295 for ; Fri, 7 May 2004 11:10:17 +0200 Received: from astrocyte.cl.cam.ac.uk ([128.232.8.107] helo=cl.cam.ac.uk ident=[eQIz5r7VTilkulOe0KgA/3qBvakaVMAr]) by mta1.cl.cam.ac.uk with esmtp (Exim 3.092 #1) id 1BM1N1-0005tR-00; Fri, 07 May 2004 10:10:15 +0100 X-Mailer: exmh version 2.6.3-CL 04/04/2003 with nmh-1.0.4 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: cslists/caml To: briand@aracnet.com cc: caml-list@inria.fr Subject: Re: [Caml-list] function application is partial In-reply-to: Your message of "Thu, 06 May 2004 22:54:06 PDT." <16539.9342.181580.299374@soggy.deldotd.com> Mime-Version: 1.0 Content-Type: text/plain Date: Fri, 07 May 2004 10:10:14 +0100 From: Keith Wansbrough Message-Id: X-Miltered: at nez-perce with ID 409B5279.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 printf:01 printf:01 ocaml:01 complex:03 partial:03 partial:03 arguments:03 data:03 let:04 let:04 suspect:05 seems:05 hth:06 maybe:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > But why was the error on p=v.(i) and not on the printf line itself ? [..] > briand> File "sweep.ml", line 30, characters 6-115: > briand> Warning: this function application is partial, > briand> maybe some arguments are missing. [..] > briand> let p = v.(i) in > briand> let f = p.freq in > briand> let z = p.data in > briand> Printf.printf "%.3e %.3e\n" (number_db (Complex.norm2 z)); I can't tell which line is line 30, but none of your lines are 115 characters long. Count 109 characters from the "let" in "let p = v.(i)", and I suspect you reach the printf. OCaml often seems to be confused about lines in error messages. HTH. --KW 8-) ------------------- 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