caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: yoann padioleau <padator@wanadoo.fr>
To: spiralvoice <spiralvoice@hotmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Difference between != and <>
Date: Wed, 31 Aug 2005 00:00:54 +0200	[thread overview]
Message-ID: <514F89ED-DF61-4B98-86B5-FC81D2ABEC43@wanadoo.fr> (raw)
In-Reply-To: <df2k84$8kh$1@sea.gmane.org>


On 30 août 05, at 23:49, spiralvoice wrote:

> Hi,
>
> is there a difference between != and <> in Ocaml code?

Yes, the same kind of difference that between = and ==
"toto" <> "toto"
=> false

"toto" != "toto
=> true

let x = "toto" in x != x
=> false

It is a difference between structural equality (deep equality) and  
physical equality (shallow equality, or "pointer" equality).

By the way, one wonderful thing with computer science is that you can  
ask many questions to the machine :)


>
> Greetings, spiralvoice
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>



      reply	other threads:[~2005-08-30 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 21:49 spiralvoice
2005-08-30 22:00 ` yoann padioleau [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=514F89ED-DF61-4B98-86B5-FC81D2ABEC43@wanadoo.fr \
    --to=padator@wanadoo.fr \
    --cc=caml-list@inria.fr \
    --cc=spiralvoice@hotmail.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;
as well as URLs for NNTP newsgroup(s).