English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] function application is partial
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-07 (09:10)
From: Keith Wansbrough <Keith.Wansbrough@c...>
Subject: Re: [Caml-list] function application is partial

> 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.


--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