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 EAA00404; Fri, 23 Apr 2004 04:32:00 +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 EAA00434 for ; Fri, 23 Apr 2004 04:31:58 +0200 (MET DST) Received: from hotmail.com (bay7-f75.bay7.hotmail.com [64.4.11.75]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3N2VuYM010325 for ; Fri, 23 Apr 2004 04:31:57 +0200 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Apr 2004 19:31:56 -0700 Received: from 66.141.17.195 by by7fd.bay7.hotmail.msn.com with HTTP; Fri, 23 Apr 2004 02:31:55 GMT X-Originating-IP: [66.141.17.195] X-Originating-Email: [writetosafi@hotmail.com] X-Sender: writetosafi@hotmail.com From: "mohammad siddiqui" To: zilles@1969.ws Cc: skaller@users.sourceforge.net, rich@annexia.org, caml-list@inria.fr Subject: Re: [Caml-list] help Date: Fri, 23 Apr 2004 02:31:55 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 Apr 2004 02:31:56.0062 (UTC) FILETIME=[25386BE0:01C428DB] 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 sourceforge:01 caml-list:01 2004:99 model:01 model:01 cid:99 mutable:01 mutable:01 asp:98 campaign:97 wrote:03 array:04 array:04 clinic:94 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. Mohammad S Siddiqui. >From: Karl Zilles >To: mohammad siddiqui >CC: skaller@users.sourceforge.net, rich@annexia.org, caml-list@inria.fr >Subject: Re: [Caml-list] help >Date: Thu, 22 Apr 2004 16:57:43 -0700 > >mohammad siddiqui wrote: >>Hello, >>I am unable to change the values for an example How can I change the value >>od >>model.supvec[i].words[i].wnum? > >If you make wnum "mutable", you can just say: > >model.supvec.(i).words.(i).wnum <- newvalue > >although I suspect you don't really want use "i" twice. _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ------------------- 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