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 PAA00389; Mon, 8 Oct 2001 15:29:20 +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 PAA00375 for ; Mon, 8 Oct 2001 15:29:19 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f98DTIv15408; Mon, 8 Oct 2001 15:29:18 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA00406; Mon, 8 Oct 2001 15:29:17 +0200 (MET DST) Date: Mon, 8 Oct 2001 15:29:17 +0200 From: Xavier Leroy To: Sylvain Kerjean Cc: caml-list@inria.fr Subject: Re: [Caml-list] how to perform an inline assignation to a value containing an int32 Message-ID: <20011008152917.E32344@pauillac.inria.fr> References: <3BBABF80.C5F7C557@irisa.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3BBABF80.C5F7C557@irisa.fr>; from skerjean@irisa.fr on Wed, Oct 03, 2001 at 09:34:24AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > i tried Int32_val(v) = v' Yes, you can do that. Int32_val(v) is a l-value as well as a r-value, in C parlance. Still, the Caml type int32 is normally immutable, so it might be cleaner to allocate a fresh int32 using copy_int32(v'). - 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