caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Invalid_argument("equal: abstract value")?
@ 2003-12-31 21:55 Tom Hawkins
  2003-12-31 22:21 ` Tom Hawkins
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Hawkins @ 2003-12-31 21:55 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-01 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31 21:55 [Caml-list] Invalid_argument("equal: abstract value")? Tom Hawkins
2003-12-31 22:21 ` Tom Hawkins
2004-01-01  3:10   ` skaller
2004-01-01 13:36     ` Damien Doligez

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