From: Nils Goesche <cartan@cartan.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] exceptions and the polymorphic equality
Date: 18 Jul 2001 15:36:28 +0200 [thread overview]
Message-ID: <lkk816z7dv.fsf@pc022.bln.elmeg.de> (raw)
In-Reply-To: <20010718092820F.sumii@yl.is.s.u-tokyo.ac.jp>
eijiro_sumii@anet.ne.jp writes:
> From: Nils Goesche <cartan@cartan.de>
> > I can't see any ``issue'' here:
> >
> > # e == e';;
> > - : bool = false
> >
> > # try raise e with e -> ();;
> > - : unit = ()
>
> Is this a kind of sophisticated joke or something?:-) It catches _any_
> exception.
>From which it follows as sure as hell that it'll catch the one you
wanted to catch, right?
Okok, I goofed, forget about it :-)
> From: Nils Goesche <cartan@cartan.de>
> > OTOH, we also have
> >
> > # 2 == 2;;
> > - : bool = true
> > # 2.0 == 2.0;;
> > - : bool = false
> >
> > So, this still doesn't seem like a bug to me...
>
> I've never said or even thought that "Foo == Foo" being false is a
> bug; it just implies that constant exceptions are not "simple
> single-word" objects (like integers and constant constructors) in
> OCaml, I suppose, as floats are not.
Apparently.
Regards,
--
Nils Goesche
"Don't ask for whom the <CTRL-G> tolls."
PGP key ID 0x42B32FC9
-------------------
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
prev parent reply other threads:[~2001-07-18 13:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-15 13:05 eijiro_sumii
2001-07-16 14:44 ` Nils Goesche
2001-07-16 14:58 ` Xavier Urbain
2001-07-16 15:02 ` Xavier Urbain
2001-07-16 15:58 ` Nils Goesche
2001-07-16 15:11 ` Pierre Weis
2001-07-17 0:59 ` eijiro_sumii
2001-07-17 14:35 ` Nils Goesche
2001-07-18 0:28 ` eijiro_sumii
2001-07-18 13:36 ` Nils Goesche [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=lkk816z7dv.fsf@pc022.bln.elmeg.de \
--to=cartan@cartan.de \
--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