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 RAA18038; Fri, 23 Apr 2004 17:40:13 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA18197 for ; Fri, 23 Apr 2004 17:40:11 +0200 (MET DST) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3NFeAYM028350 for ; Fri, 23 Apr 2004 17:40:10 +0200 Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id i3NFchR13753; Fri, 23 Apr 2004 10:38:43 -0500 (CDT) Date: Fri, 23 Apr 2004 10:43:21 -0500 (CDT) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: mohammad siddiqui cc: zilles@1969.ws, , , Ocaml Mailing List Subject: Re: [Caml-list] help In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 mutable:01 wrote:03 inline:03 data:03 data:03 redirect:95 array:04 array:04 structures:05 structures:05 structure:06 brian:06 brian:06 fri:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 23 Apr 2004, mohammad siddiqui wrote: > I already made it mutable. words is an array of structure called "word". If > I try to change the value as you told it changes tha values of all the > elements of array "words". Thanks for your help in advance. You can't "inline" data structures into other data structures. The word array you made is actually, in C terms, a word * array. -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- 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