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 GAA24411; Mon, 14 Jul 2003 06:20:28 +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 GAA27822 for ; Mon, 14 Jul 2003 06:20:26 +0200 (MET DST) Received: from axiom.anu.edu.au (axiom.anu.edu.au [150.203.127.200]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h6E4KPf01006 for ; Mon, 14 Jul 2003 06:20:25 +0200 (MET DST) Received: from pulp.anu.edu.au (pulp.anu.edu.au [150.203.126.25]) by axiom.anu.edu.au (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id h6E4KMG22719 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Mon, 14 Jul 2003 14:20:22 +1000 Received: from pulp.anu.edu.au (localhost [127.0.0.1]) by pulp.anu.edu.au (8.12.9/8.12.9/Debian-5) with ESMTP id h6E4L5Of010967 for ; Mon, 14 Jul 2003 14:21:05 +1000 Received: (from abate@localhost) by pulp.anu.edu.au (8.12.9/8.12.9/Debian-5) id h6E4L5Qm010964 for caml-list@pauillac.inria.fr; Mon, 14 Jul 2003 14:21:05 +1000 Date: Mon, 14 Jul 2003 14:21:05 +1000 From: Pietro Abate To: caml-list@pauillac.inria.fr Subject: [Caml-list] camlp4 and assignments Message-ID: <20030714042105.GA10875@anu.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: GNU/Linux X-Organization: Research School of Information Science and Engineering (Australian National University) User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pietro:01 abate:01 camlp:01 foo:01 syntax:02 unbound:02 variable:03 let:04 str:05 north:92 operations:08 perform:10 what's:11 attempt:11 looks:12 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi all, I want to write a quotation to produce and assignment. So far I was only able to produce a variable assigment, but, of course, that's not what I want... my attempt looks like: <:str_item<$lid:"foo" := $str:"bar"$ >> and the expected result should be let _ = foo := "bar" but I get let _ = foo <- "bar" and "Unbound instance variable foo" what's the right syntax ? tnx, p -- Civilization advances by extending the number of important operations which we can perform without thinking. (Alfred North Whitehead) ------------------- 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