English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2003-07-14 (04:20)
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 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