caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: briand@aracnet.com
To: Matt Gushee <mgushee@havenrock.com>
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] serious type confusion
Date: Sat, 27 Mar 2004 10:34:45 -0800	[thread overview]
Message-ID: <16485.51525.563377.579691@soggy.deldotd.com> (raw)
In-Reply-To: <20040327181638.GA8360@swordfish>

>>>>> "Matt" == Matt Gushee <mgushee@havenrock.com> writes:

  Matt> * Is current_polyline defined within the same scope where the error
  Matt>   occurs, or is it received as an argument? If it is the latter, and
  Matt>   somewhere before the error location there is an expression that *uses*
  Matt>   !current_polyline as a point, that would explain your error.  If your
  Matt>   function is too complex to easily identify the problem by sight, an
  Matt>   easy way to check for this would be to put a type constraint on the
  Matt>   parameter:

  Matt>     let myfun (current_polyline:point list ref) =
  Matt>       ....

That was it exactly (see my followup).

However that's a very nice trick for future debuggin effort.

Thanks

Brian

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


      reply	other threads:[~2004-03-27 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-27 17:31 briand
2004-03-27 17:55 ` briand
2004-03-27 18:16 ` Matt Gushee
2004-03-27 18:34   ` briand [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=16485.51525.563377.579691@soggy.deldotd.com \
    --to=briand@aracnet.com \
    --cc=caml-list@pauillac.inria.fr \
    --cc=mgushee@havenrock.com \
    /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;
as well as URLs for NNTP newsgroup(s).