From: David Monniaux <David.Monniaux@ens.fr>
To: Liste CAML <caml-list@inria.fr>
Subject: throws
Date: Mon, 6 Sep 1999 19:30:59 +0200 (MET DST) [thread overview]
Message-ID: <Pine.GSO.4.03.9909061924050.9516-100000@basilic.ens.fr> (raw)
[resume: suggestion d'implementer une analyse statique et sommaire de
detection de fuites potentielles d'exceptions semblable a celle de Java]
The Java language has a nice feature: static detection of exception
leaks (or, more exactly, a conservative and simple approximation of it,
since the full problem is of course undecidable).
That is, functions must declare the exceptions they can throw
(except those generated by the runtime system); exceptions that can be
thrown from function f are inferred by looking at those that can be thrown
by the functions called from f, those that are explicitely thrown in f and
those that are caught in f.
Pardon me if I'm mistaken, but this sounds easy and cheap to implement.
Could it be possible to add a construct like this:
throws
<list of throwable exceptions>
in <expression> ?
Only terms tagged such as above would be checked so as to allow upwards
compatibility.
Does this sound nifty? And implementable?
---
David Monniaux Tel: +33 1 44 32 20 66 Fax: +33 1 44 32 20 80
Laboratoire d'informatique de l'École Normale Supérieure,
45 rue d'Ulm - 75230 PARIS cedex 5 - FRANCE
next reply other threads:[~1999-09-07 9:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-06 17:30 David Monniaux [this message]
1999-09-07 10:23 ` throws Alain Frisch
1999-09-07 11:55 ` throws Markus Mottl
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=Pine.GSO.4.03.9909061924050.9516-100000@basilic.ens.fr \
--to=david.monniaux@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