<?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/10/31fc9734cb77074b2b1b48ffdc5de321"
  from="Flavio Leonardo Cavalcanti de Moura &lt;flavio@m...&gt;"
  author="Flavio Leonardo Cavalcanti de Moura"
  date="2003-10-23T17:39:29"
  subject="[Caml-list] actualize a string"
  prev="2003/10/524383af3fd063e600f8875e23deb14b"
  next="2003/10/e7f6c0d5605db8954852475f246f1109"
  next-in-thread="2003/10/2133e8c023983b75e9eaac3726dd6ed9"
  prev-thread="2003/10/e3a4825e2cfa9c175bbf57ff30c4ac42"
  next-thread="2003/10/e7f6c0d5605db8954852475f246f1109"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] actualize a string">
<msg 
  url="2003/10/31fc9734cb77074b2b1b48ffdc5de321"
  from="Flavio Leonardo Cavalcanti de Moura &lt;flavio@m...&gt;"
  author="Flavio Leonardo Cavalcanti de Moura"
  date="2003-10-23T17:39:29"
  subject="[Caml-list] actualize a string">
<msg 
  url="2003/10/2133e8c023983b75e9eaac3726dd6ed9"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2003-10-23T19:32:27"
  subject="Re: [Caml-list] actualize a string">
</msg>
</msg>
</thread>

<contents>
	I am trying to build a procedure such that some reductions are
performed while a list (of redex) is not empty. The problem is that a
new list is needed at each step otherwise it will loop for ever. The
actual code is

let normal exp =
 let l = exp :: [] in
 while (matchingApp exp [] []) &lt;&gt; [] do
       exp := (appreduction exp (hd (matchingApp exp [] [])));
       exp :: l done; l;;

After the 'while' I would like to actualize the expression 'exp' with the
string (appreduction exp (hd (matchingApp exp [] []))). The problem is
that with := it does not work. How can I do that? I couldn't find anything
in the ocaml manual.

	Best regards,
  	Flávio Leonardo.


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

