From: Radu Grigore <radugrigore@gmail.com>
To: fa.caml@googlegroups.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Differences between Array and Strings
Date: Sat, 30 Apr 2011 04:03:44 -0700 (PDT) [thread overview]
Message-ID: <dbf8808a-8fce-4f1c-adc8-04f2400b6e52@glegroupsg2000goo.googlegroups.com> (raw)
In-Reply-To: <fa.YVp+LBcZBn2VVSqyBV+/Bw0Mb/I@ifi.uio.no>
On Friday, April 29, 2011 12:51:59 PM UTC+1, louis....@ens.fr wrote:
> > let l () = "1" ;;
> > [...]
> > l()==l();;
> # val l : unit -> string = <fun>
> # [...]
> # - : bool = true
Is there a good reason for this behavior? My first thought was that that code should behave the same as
let f () = ref () in f () == f ()
(A satisfying explanation would *not* involve the compiler.)
next parent reply other threads:[~2011-04-30 11:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.YVp+LBcZBn2VVSqyBV+/Bw0Mb/I@ifi.uio.no>
2011-04-30 11:03 ` Radu Grigore [this message]
2011-04-30 13:34 ` David Allsopp
2011-04-30 23:10 ` Martin Jambon
2011-04-29 11:51 louis.jachiet
2011-04-29 14:36 ` David Allsopp
2011-04-30 14:06 ` Philippe Wang
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=dbf8808a-8fce-4f1c-adc8-04f2400b6e52@glegroupsg2000goo.googlegroups.com \
--to=radugrigore@gmail.com \
--cc=caml-list@inria.fr \
--cc=fa.caml@googlegroups.com \
/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