caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom Hawkins <tom@launchbird.com>
To: caml-list@inria.fr
Subject: [Caml-list] Invalid_argument("equal: abstract value")?
Date: Wed, 31 Dec 2003 15:55:47 -0600	[thread overview]
Message-ID: <200312311555.47555.tom@launchbird.com> (raw)

I haven't seen this error before.  Can someone provide an explanation?

I've traced the problem down to a structural comparison (=) between 
two large data structures.  I know functional comparisons are a 
no-no, but what is an "abstract value"?

The problem occurred when I added big integers (Big_int.big_int) to 
the data structures under comparison.  Suspecting big ints can't be 
structurally compared, I tried the following, but the compiler 
printed "false" as I would normally expect:

  let a = Big_int.zero_big_int = Big_int.unit_big_int in
  if a then print_string "true\n" else print_string "false\n";

Regards,
Tom

-- 
Tom Hawkins
Launchbird Design Systems, Inc.
952-200-3790
http://www.launchbird.com/

-------------------
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:[~2003-12-31 22:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-31 21:55 Tom Hawkins [this message]
2003-12-31 22:21 ` Tom Hawkins
2004-01-01  3:10   ` skaller
2004-01-01 13:36     ` Damien Doligez

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=200312311555.47555.tom@launchbird.com \
    --to=tom@launchbird.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;
as well as URLs for NNTP newsgroup(s).