From: Ken Friis Larsen <kfl@it.edu>
To: caml-list@inria.fr
Subject: Re: exceptions in CamlLight 0.7 and OCaml
Date: 11 Aug 2000 11:53:45 +0100 [thread overview]
Message-ID: <yruzomkf4qu.fsf@sturgeon.cl.cam.ac.uk> (raw)
In-Reply-To: Kwangkeun Yi's message of "Fri, 11 Aug 2000 16:05:49 +0900 (KST)"
Hi,
Kwangkeun> I have a quick question. Does OCaml have the same
Kwangkeun> implementation for exceptions as in CamlLight 0.7?
This I cannot answer with authority (but according to my memory, the
answer is yes)
Kwangkeun> if CamlLight implementation of exceptions is the same as
Kwangkeun> in OCaml we can use the Moscow ML without having to
Kwangkeun> translate our SML benchmarks into Caml.
I don't think that this will measure what you think it will measure.
Remember that exception differs slightly in SML and Caml: In SML
exceptions are generative. In Moscow ML 2.00[1] _all_ SML exceptions
are roughly encoded as Caml exceptions of the form:
exception SMLexc of string ref * 'a
(In the modified CamlLight runtime system of cause. The code above is
not valid Caml.)
Where the string ref corresponds to the name of the exception.
Hope this helps.
Cheers,
--Ken
[1] Earlier implementations of Moscow ML used a much complicated
encoding where some exceptions had one encoding and others another.
prev parent reply other threads:[~2000-08-14 16:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-11 7:05 Kwangkeun Yi
2000-08-11 8:29 ` Xavier Leroy
2000-08-11 10:53 ` Ken Friis Larsen [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=yruzomkf4qu.fsf@sturgeon.cl.cam.ac.uk \
--to=kfl@it.edu \
--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