From: Pierre Weis <weis@pauillac.inria.fr>
To: arc@sequence.Stanford.EDU (Andrew Conway)
Cc: caml-list@pauillac.inria.fr
Subject: Re: Break
Date: Tue, 25 Feb 1997 13:34:39 +0100 (MET) [thread overview]
Message-ID: <199702251234.NAA09052@pauillac.inria.fr> (raw)
In-Reply-To: <199702242000.MAA28634@vegemite.Stanford.EDU> from Andrew Conway at "Feb 24, 97 12:00:53 pm"
> I would like to suggest a "new" standard exception: Pervasives.Break.
There already exists a Break exception:
# Sys.Break;;
- : exn = Break
It has another meaning, snce it is used to signal an interrupt (^C in
general under Unix).
# raise Sys.Break;;
Interrupted.
Ther is no problem to use it to exit from loops, but it could be a bit
confusing. Thus, there also exists an exception devoted to premature
exits from loops:
# Pervasives.Exit;;
- : exn = Exit
you should raise the Exit exception when you want a premature end of
loop. (This is also true for Caml Light.)
> [ En mauvais francais ]
>
> Chers Utilisateurs de Caml,
>
> Je voudrais vous proposer un exception nouveau : Pervasives.break.
Elle existe de'ja`: c'est l'exception Pervasives.Exit en Objective
Caml ou Exit en Caml Light. L'exception Sys.Break (ou sys__Break) est
consacre'e a` signaler les interruption venant du syste`me
d'exploitation (en ge'ne'ral appui sur ^C sous Unix).
Best regards,
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis
prev parent reply other threads:[~1997-02-25 12:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-24 20:00 Break Andrew Conway
1997-02-25 12:34 ` Pierre Weis [this message]
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=199702251234.NAA09052@pauillac.inria.fr \
--to=weis@pauillac.inria.fr \
--cc=arc@sequence.Stanford.EDU \
--cc=caml-list@pauillac.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