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 OAA08044; Mon, 14 Jul 2003 14:55:11 +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 OAA28541 for ; Mon, 14 Jul 2003 14:55:10 +0200 (MET DST) Received: from cantina.students.cs.unibo.it (cantina.students.cs.unibo.it [130.136.3.110]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h6ECtAT14067 for ; Mon, 14 Jul 2003 14:55:10 +0200 (MET DST) Received: from fistandantilus.takhisis.org (postfix@[130.136.32.60]) by cantina.students.cs.unibo.it (8.12.4/8.12.4/Debian-2) with ESMTP id h6ECt9ZH001835 for ; Mon, 14 Jul 2003 14:55:10 +0200 Received: by fistandantilus.takhisis.org (Postfix, from userid 3148) id C37C9274236; Mon, 14 Jul 2003 14:55:09 +0200 (CEST) Date: Mon, 14 Jul 2003 14:55:09 +0200 From: Stefano Zacchiroli To: Inria Ocaml Mailing List Subject: Re: [Caml-list] camlp4 and assignments Message-ID: <20030714125509.GA2283@fistandantilus.takhisis.org> Mail-Followup-To: Inria Ocaml Mailing List References: <20030714042105.GA10875@anu.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030714042105.GA10875@anu.edu.au> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bononia:01 caml-list:01 camlp:01 pietro:01 abate:01 foo:01 val:01 syntax:02 refs:02 bologna:03 revised:03 wrote:03 zacchiroli:03 romney:03 unibo:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Jul 14, 2003 at 02:21:05PM +1000, Pietro Abate wrote: > <:str_item<$lid:"foo" := $str:"bar"$ >> > > and the expected result should be > let _ = foo := "bar" > > but I get > > let _ = foo <- "bar" Inside quotations you have to use revised syntax in which refs are declared as record types with a "val" field. Standard syntax: foo := "bar" Revised syntax: foo.val := "bar" Cheers -- Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney ------------------- 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