caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Nicolas George <nicolas.george@ens.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] raise extra arg ignored
Date: Sun, 28 Oct 2001 20:47:23 +0100	[thread overview]
Message-ID: <20011028204723.A25632@clipper.ens.fr> (raw)
In-Reply-To: <20011027223050.E29934@verdot.inria.fr>; from daniel.derauglaudre@inria.fr on Sat, Oct 27, 2001 at 08:36:36PM +0000

Le sextidi 6 brumaire, an CCX, Daniel de Rauglaudre a écrit :
> I wonder whether there are situations where it could be a problem?
> Sometimes, a missing semicolon can introduce typing errors or perhaps
> work with different semantics (what is very bad). But here, I don't
> see, since, generally, nobody add another statement after a "raise".
> Does anybody have an example?

It make sense to add statements after a raise if the raise in inside an
if...else:

if not (is_valid argument) then raise Some_exception;
do_something argument
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  parent reply	other threads:[~2001-10-28 19:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-27 19:51 Pixel
2001-10-27 20:30 ` Daniel de Rauglaudre
2001-10-27 23:44   ` Pixel
2001-10-28 19:47   ` Nicolas George [this message]
2001-10-29 10:26 ` Xavier Leroy
2001-10-30 21:29   ` Pierre Weis
2001-10-30 22:17     ` Dave Mason
2001-10-31 17:57       ` Daniel de Rauglaudre
2001-10-31 19:09         ` Remi VANICAT
2001-11-01 10:01           ` Daniel de Rauglaudre
2001-11-26 15:12   ` Fergus Henderson

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=20011028204723.A25632@clipper.ens.fr \
    --to=nicolas.george@ens.fr \
    --cc=caml-list@inria.fr \
    /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).