Commit 26a3eb72 authored by POTTIER Francois's avatar POTTIER Francois

Comments and TODO update.

parent beada742
......@@ -6,10 +6,6 @@
between 4.01.0 and 4.02.1. Use the tag last309 for this purpose,
or the master branch.
* Update the source code for 4.02
change String to Bytes where appropriate
replace let/unless with match/exception in a few places
* Is it possible to update calc-two and calc-param to use ocamlbuild?
(they need --external-tokens and --only-tokens)
Then, one could remove Makefile.shared and ocamldep.wrapper.
......
......@@ -702,11 +702,12 @@ let errortypescheme s =
let can_die =
ref false
(* A code pattern for an exception handling construct where both
alternatives are in tail position. Concrete syntax for this would
be [let x = e in e1 unless Error -> e2]. Since Objective Caml does
not support this construct, we emulate it using a combination of
[try/with], [match/with], and an [option] value. *)
(* A code pattern for an exception handling construct where both alternatives
are in tail position. Concrete syntax in OCaml 4.02 is [match e with x ->
e1 | exception Error -> e2]. Earlier versions of OCaml do not support this
construct. We continue to emulate it using a combination of [try/with],
[match/with], and an [option] value. It is used only in a very rare case
anyway. *)
let letunless e x e1 e2 =
EMatch (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment