caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Julien Moutinho <julien.moutinho@gmail.com>
To: Jon Harrop <jon@ffconsultancy.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] try .. finally using new camlp4
Date: Sun, 8 Jul 2007 05:28:54 +0200	[thread overview]
Message-ID: <20070708032853.GA9215@jiyu.gnu> (raw)
In-Reply-To: <200707080114.42213.jon@ffconsultancy.com>

> Drop into a top-level with the extended syntax and the extension works but it 
> seems to have replaced the original try .. with syntax rather than added a 
> new one:

Interestingly, here is what your code does
with the current CVS version <http://camlcvs.inria.fr/>:

$ ocaml camlp4of.cma pa_try_finally.cmo
        Objective Caml version 3.11+dev2 (2007-05-08)

        Camlp4 Parsing version 3.11+dev2 (2007-05-08)

# try raise Exit finally print_endline "Foo!";;
Foo!
Exception: Pervasives.Exit.
# try raise Exit with _ -> print_endline "Foo!";;
Foo!
- : unit = ()


  reply	other threads:[~2007-07-08  3:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08  0:14 Jon Harrop
2007-07-08  3:28 ` Julien Moutinho [this message]
2007-07-09  9:01 ` [Caml-list] " Vincent Hanquez
2007-07-09  9:43   ` Jeremy Yallop
2007-07-09  9:33     ` Vincent Hanquez
2007-07-09 13:06 ` Nicolas Pouillard
2007-07-10  8:28   ` Bruno De Fraine
2007-07-10 12:44     ` Nicolas Pouillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070708032853.GA9215@jiyu.gnu \
    --to=julien.moutinho@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jon@ffconsultancy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).