<?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/59342372890e2dba352773a842d018b1"
  from="Stefano Zacchiroli &lt;zack@b...&gt;"
  author="Stefano Zacchiroli"
  date="2003-07-14T12:55:11"
  subject="Re: [Caml-list] camlp4 and assignments"
  prev="2003/07/c35ce3ef11d645eaf3822cd5eb0f68c0"
  next="2003/07/36b2edf2db9659a52e7f032f869c7ba3"
  prev-in-thread="2003/07/3cb581ddc8f66d21d3bbe19549f09451"
  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>
On Mon, Jul 14, 2003 at 02:21:05PM +1000, Pietro Abate wrote:
&gt; &lt;:str_item&lt;$lid:"foo" := $str:"bar"$ &gt;&gt;
&gt; 
&gt; and the expected result should be
&gt; let _ = foo := "bar"
&gt; 
&gt; but I get
&gt; 
&gt; let _ = foo &lt;- "bar"

Inside quotations you have to use revised syntax in which refs are
declared as record types with a "val" field.

Standard syntax:      foo := "bar"
Revised syntax:       foo.val := "bar"

Cheers

-- 
Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney

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

