From: michel@lami.univ-evry.fr (Olivier Michel)
To: caml-list@inria.fr
Cc: the MGS project <mgs@lami.univ-evry.fr>
Subject: Changes on equality between 3.06 and 3.08.3
Date: Thu, 28 Apr 2005 12:02:53 +0200 [thread overview]
Message-ID: <20050428100252.GF31263@lami.univ-evry.fr> (raw)
Hi dear ocamlers,
I just noticed the following change in Ocaml between release 3.06 and 3.08.3, as far
as equality on records is concerned :
////////////////////////////////////////////////////////////////////////////////
//
//release 3.06
//
dellfp-3 7 > /ocaml
Objective Caml version 3.06
# type toto = { b : int -> int; } ;;
type toto = { b : int -> int; }
# let a = { b = (fun x -> x) } ;;
val a : toto = {b = <fun>}
# a = a;;
- : bool = true
//
//release 3.08.3
//
dellfp-3 8 > ocaml
Objective Caml version 3.08.3
# type toto = { b : int -> int; };;
type toto = { b : int -> int; }
# let a = { b = (fun x -> x) } ;;
val a : toto = {b = <fun>}
# a = a;;
Exception: Invalid_argument "equal: functional value".
////////////////////////////////////////////////////////////////////////////////
Is this supposed to be a bug, or a feature ? Will future releases of Ocaml follow
the new way of handling equality between records or the old one ?
Best regards,
Olivier.
--
Olivier MICHEL Email : michel@lami.univ-evry.fr
Universite d'Evry Val d'Essonne http : www.lami.univ-evry.fr/~michel
Equipe Specif / Projet MGS http : mgs.lami.univ-evry.fr
LaMI - UMR 8042 du CNRS Phone : +33 (0)1.60.87.39.10
523, place des terrasses de l'agora Fax : +33 (0)1.60.87.37.89
91000 Evry - FRANCE
next reply other threads:[~2005-04-28 10:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 10:02 Olivier Michel [this message]
2005-04-28 16:29 ` [Caml-list] " Damien Doligez
2005-04-28 16:41 ` Alex Baretta
2005-04-28 17:06 ` Olivier Andrieu
2005-04-28 18:20 ` Marcin 'Qrczak' Kowalczyk
2005-04-28 18:23 ` Jon Harrop
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=20050428100252.GF31263@lami.univ-evry.fr \
--to=michel@lami.univ-evry.fr \
--cc=caml-list@inria.fr \
--cc=mgs@lami.univ-evry.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