From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA14242; Tue, 19 Feb 2002 13:15:22 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA14327 for ; Tue, 19 Feb 2002 13:15:21 +0100 (MET) Received: from relay-2v.club-internet.fr (relay-2v.club-internet.fr [194.158.96.113]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1JCFKj17395 for ; Tue, 19 Feb 2002 13:15:21 +0100 (MET) Received: from warp (lns02v-1-131.w.club-internet.fr [212.194.24.131]) by relay-2v.club-internet.fr (Postfix) with SMTP id 906961686 for ; Tue, 19 Feb 2002 13:15:18 +0100 (CET) Message-ID: <00f901c1b93e$e95ad6c0$3c00a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] Bug value Date: Tue, 19 Feb 2002 13:13:59 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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