caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Bug value
@ 2002-02-19 12:13 Warp
  2002-02-19 12:43 ` Dmitry Lomov
  2002-02-19 14:35 ` Sven
  0 siblings, 2 replies; 3+ messages in thread
From: Warp @ 2002-02-19 12:13 UTC (permalink / raw)
  To: OCaml

Is the following code :

let read_fdata file =
 let id = (input_value file : fid) in
 let infos = (input_value file : finfos) in
 {
  id = id;
  infos = infos;
  childs = clist;
  deps = dlist;
 }

equivalent to :

let read_fdata file =
 {
  id = (input_value file : fid);
  infos = (input_value file : finfos);
 }

?
Because the first one got no problem while the second one is causing a fatal
bug at run-time when I try to access the struct

PS :
-----
type fid = int
type fver = int
type ftype = int
type finfos = {
 mutable name : string;
 mutable parent : fid;
 mutable ver : fver;
 mutable t : ftype;
}

Warp

-------------------
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] 3+ messages in thread

end of thread, other threads:[~2002-02-19 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-19 12:13 [Caml-list] Bug value Warp
2002-02-19 12:43 ` Dmitry Lomov
2002-02-19 14:35 ` Sven

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