List Info

Thread: "ocaml_beginners"::[] Currified exceptions in revised Caml syntax ?




"ocaml_beginners"::[] Currified exceptions in revised Caml syntax ?
user name
2006-12-30 22:41:44

On Sat, 30 Dec 2006, roparzhhemon wrote:

> Hello all,
>
> the following line of code (in the so-called "revised" CamlP4
> syntax,from file stdpp.ml
> of the OCaml distribution) puzzles me :
>
> exception Exc_located of Token.flocation and exn;

In the standard syntax it gives:

exception Exc_located of Token.flocation * exn;;

which is different from:

exception Exc_located of (Token.flocation * exn)

> appearantly this is a sort of "currified" exception with two parameters. I did
> not find any explanation on this in the CamlP4 manual or tutorials (NB : I'm
> using the "old" version 3.09.0). Can it be translated into ordinary Caml syntax ?

It's in the chapter where the revised syntax is presented and compared to
the classic syntax.

Martin

--
Martin Jambon
http://martin.jambon.free.fr

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )