From: Olivier Bouyssou <olivier.bouyssou@wanadoo.fr>
To: caml-list@inria.fr
Subject: operational semantics of == for methods
Date: Thu, 18 Mar 1999 12:04:28 +0100 [thread overview]
Message-ID: <36F0DDBB.8EA36428@wanadoo.fr> (raw)
Here a example :
Objective Caml version 2.02
# class test () =
object
method f () = ()
end;;
class test : unit -> object method f : unit -> unit end
# let o = new test () ;;
val o : test = <obj>
# let f = o#f ;;
val f : unit -> unit = <fun>
# f == o#f ;;
- : bool = false
Why the last expression return false ?
Thanks in advance.
--
Olivier Bouyssou (F1NXH), Sobel olivier.bouyssou@wanadoo.fr
22 rue paul verlaine 31570 st Foy d'Aigrefeuille
Tel : +33.5.62.18.81.82 Fax : +33.4.68.94.54.16
reply other threads:[~1999-03-19 18:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=36F0DDBB.8EA36428@wanadoo.fr \
--to=olivier.bouyssou@wanadoo.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