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 MAA28516; Thu, 18 Oct 2001 12:23:42 +0200 (MET DST) 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 MAA27823 for ; Thu, 18 Oct 2001 12:23:41 +0200 (MET DST) Received: from www.image-acquire.com (valkyrie.image-acquire.com [207.71.8.230]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f9IANe125480 for ; Thu, 18 Oct 2001 12:23:41 +0200 (MET DST) Received: from [192.168.0.2] (203-79-84-24.adsl.paradise.net.nz [203.79.84.24]) by www.image-acquire.com (8.9.3/8.9.3) with ESMTP id FAA21220; Thu, 18 Oct 2001 05:23:35 -0500 Mime-Version: 1.0 X-Sender: bruce@www.hoult.org Message-Id: In-Reply-To: <20011018174410.A10054@team.ph.inter.net> References: <20011018174410.A10054@team.ph.inter.net> Date: Thu, 18 Oct 2001 23:23:25 +1300 To: "Rafael 'Dido' Sevilla" , Caml List From: Bruce Hoult Subject: Re: [Caml-list] getting the value of the first expression Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk At 5:44 PM +0800 18/10/01, Rafael 'Dido' Sevilla wrote: >emit_parm "ldc" offset; >emit "ind" > >The value of this whole expression is the value of the emit application. > What if I want the value of the entire expression to be the value of >the emit_parm application? I can't interchange the order of these two >expressions obviously because the two function applications have side >effects You just need a variable binding: let result = emit_parm "ldc" offset in emit "ind"; result -- Bruce ------------------- 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