Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 "", 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 = 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 Archives:
Bug reports: FAQ:
Beginner's list: