Is this what you're looking for?
http://martin.jambon.free.fr/pa_tryfinally.ml.html


On Dec 18, 2007 12:16 PM, Jon Harrop < jon@ffconsultancy.com> wrote:
>
> I just had a blindingly obvious thought:
>
> If the core OCaml language is now stable enough that it is not viable to chuck
> the try..finally construct into the language, is there any chance it could be
> put into the camlp4 library which, for example, already provides list
> comprehensions?
>
> --
> Dr Jon D Harrop, Flying Frog Consultancy Ltd.
> http://www.ffconsultancy.com/products/?e
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>