From: Jerome Vouillon <vouillon@clipper.ens.fr>
To: Sorin Stratulat <Sorin.Stratulat@loria.fr>
Cc: caml-list@inria.fr
Subject: Re: operational semantics of = for objects
Date: Fri, 27 Mar 1998 15:33:13 +0100 (MET) [thread overview]
Message-ID: <Pine.SUN.3.95.980327151606.3776B-100000@vedette> (raw)
In-Reply-To: <351A9141.3D52@loria.fr>
On Thu, 26 Mar 1998, Sorin Stratulat wrote:
> After comparing the results of the code (see below) executed on
> different versions of OCAML (1.05 and 1.07), I would like to know if
> anybody can explain me how the equality operator works for objects (if
> it is possible in both versions). As I understood from a previous
> message, overloading the operators is not supported yet.
In Ocaml 1.05, the equality operator did not work reliably for
objects. Indeed, objects was not treated specially. So, the operator
structurally compared the structures of the two objects and in some
cases tried to compare two methods and as a consequence failed.
In Ocaml 1.07, two objects are equals iff they are physically equals.
-- Jerome Vouillon
prev parent reply other threads:[~1998-03-27 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-26 17:32 Sorin Stratulat
1998-03-27 12:14 ` Jacques GARRIGUE
1998-03-27 14:33 ` Jerome Vouillon [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=Pine.SUN.3.95.980327151606.3776B-100000@vedette \
--to=vouillon@clipper.ens.fr \
--cc=Sorin.Stratulat@loria.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