caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] int marshalling
@ 2002-01-16  0:35 Ian Zimmerman
  2002-01-16 16:08 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Zimmerman @ 2002-01-16  0:35 UTC (permalink / raw)
  To: OCAML


How does marshalling of type int work, it being of different widths on
64-bit machines?  That is, if a 64-bit int value larger than 2^31 is
marshalled on a 64-bit system, what happens if a 32-bit system tries
to unmarshall it?

-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

* Re: [Caml-list] int marshalling
  2002-01-16  0:35 [Caml-list] int marshalling Ian Zimmerman
@ 2002-01-16 16:08 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2002-01-16 16:08 UTC (permalink / raw)
  To: Ian Zimmerman; +Cc: caml-list

> How does marshalling of type int work, it being of different widths on
> 64-bit machines?  That is, if a 64-bit int value larger than 2^31 is
> marshalled on a 64-bit system, what happens if a 32-bit system tries
> to unmarshall it?

You get a run-time exception Failure "input_value: integer too large".

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2002-01-16 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-16  0:35 [Caml-list] int marshalling Ian Zimmerman
2002-01-16 16:08 ` Xavier Leroy

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