Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Michel Levy <Michel.Levy@imag.fr>
To: caml-list@inria.fr
Subject: pourquoi y-a-t-il des exceptions?
Date: Thu, 16 Nov 2000 18:31:41 +0100	[thread overview]
Message-ID: <3A1419FD.CE44DEA4@imag.fr> (raw)

Je me livre (pour le compte de mes étudiants) à une introspection de
Caml, en essayant d'introduire les exceptions dans le langage
mini-Caml du livre "Le langage Caml" de Pierre Weiss et Xavier Leroy.
Pour faire bien les choses, j'ai commencé par lire la définition de
Standart ML et je n'ai pas compris les règles de liaisons des 
eceptions (règle 130). Pourquoi dans cette définition un état d'un
programme doit-il comporter non seulement l'état de la mémoire
mais aussi les noms des exceptions ?
Et d'ailleurs pourquoi y-a-t-il le type exception, ne pourrait-on pas
appliquer "raise" à n'importe quelle valeur qui deviendrait une
exception déclanchée (cf règle 107 de la définition de Standart ML) ?

I'am trying to write an "Caml introspection", by introducing the
exception in the mini-Caml language 
of Pierre Weiss and Xavier Leroy book "Le langage Caml".
To do that, I have read the definition of Standard ML (revised 1997) and
I don't understand the Exception Binding rules (130).
Why does a program's state include not only the memory state, but also
the exceptions names ?


-- 
Michel Levy  
D106 - L.S.R.     B.P.72 - 38042 SAINT MARTIN D'HERES CEDEX - France
e.mail : Michel.Levy@imag.fr    tel :(33)476827246
http://www-lsr.imag.fr/Les.Personnes/Michel.Levy



             reply	other threads:[~2000-11-17 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-16 17:31 Michel Levy [this message]
2000-11-17 17:17 ` Xavier Leroy
2000-11-20  8:06   ` Francois Pottier

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=3A1419FD.CE44DEA4@imag.fr \
    --to=michel.levy@imag.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