Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 ?


Civilization advances by extending the number
of important operations which we can perform 
without thinking. (Alfred North Whitehead)

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: