From: Keith Wansbrough <Keith.Wansbrough@cl.cam.ac.uk>
To: briand@aracnet.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] function application is partial
Date: Fri, 07 May 2004 10:10:14 +0100 [thread overview]
Message-ID: <E1BM1N1-0005tR-00@mta1.cl.cam.ac.uk> (raw)
In-Reply-To: Your message of "Thu, 06 May 2004 22:54:06 PDT." <16539.9342.181580.299374@soggy.deldotd.com>
> 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
prev parent reply other threads:[~2004-05-07 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-07 5:21 briand
2004-05-07 5:54 ` briand
2004-05-07 9:10 ` Keith Wansbrough [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1BM1N1-0005tR-00@mta1.cl.cam.ac.uk \
--to=keith.wansbrough@cl.cam.ac.uk \
--cc=briand@aracnet.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox