Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] camlp4 and assignments
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pietro Abate <Pietro.Abate@a...>
Subject: [Caml-list] camlp4 and assignments
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