<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/07/3cb581ddc8f66d21d3bbe19549f09451"
  from="Pietro Abate &lt;Pietro.Abate@a...&gt;"
  author="Pietro Abate"
  date="2003-07-14T04:20:28"
  subject="[Caml-list] camlp4 and assignments"
  prev="2003/07/f857ce829e934a19203f79ff42f4d2a1"
  next="2003/07/c35ce3ef11d645eaf3822cd5eb0f68c0"
  next-in-thread="2003/07/59342372890e2dba352773a842d018b1"
  prev-thread="2003/07/f857ce829e934a19203f79ff42f4d2a1"
  next-thread="2003/07/c35ce3ef11d645eaf3822cd5eb0f68c0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] camlp4 and assignments">
<msg 
  url="2003/07/3cb581ddc8f66d21d3bbe19549f09451"
  from="Pietro Abate &lt;Pietro.Abate@a...&gt;"
  author="Pietro Abate"
  date="2003-07-14T04:20:28"
  subject="[Caml-list] camlp4 and assignments">
<msg 
  url="2003/07/59342372890e2dba352773a842d018b1"
  from="Stefano Zacchiroli &lt;zack@b...&gt;"
  author="Stefano Zacchiroli"
  date="2003-07-14T12:55:11"
  subject="Re: [Caml-list] camlp4 and assignments">
</msg>
</msg>
</thread>

<contents>
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:

&lt;:str_item&lt;$lid:"foo" := $str:"bar"$ &gt;&gt;

and the expected result should be
let _ = foo := "bar"

but I get

let _ = foo &lt;- "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

</contents>

</message>

