From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 69DE4BDE6 for ; Wed, 31 Aug 2005 00:07:57 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j7UM7ukQ010607 for ; Wed, 31 Aug 2005 00:07:56 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA23501 for ; Wed, 31 Aug 2005 00:07:56 +0200 (MET DST) Received: from smtp10.wanadoo.fr (smtp10.wanadoo.fr [193.252.22.21]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j7UM7trM010604 for ; Wed, 31 Aug 2005 00:07:56 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1006.wanadoo.fr (SMTP Server) with ESMTP id D7C983000094 for ; Wed, 31 Aug 2005 00:07:55 +0200 (CEST) Received: from [81.53.67.234] (ANantes-154-1-16-234.w81-53.abo.wanadoo.fr [81.53.67.234]) by mwinf1006.wanadoo.fr (SMTP Server) with ESMTP id 862923000095; Wed, 31 Aug 2005 00:07:55 +0200 (CEST) X-ME-UUID: 20050830220755549.862923000095@mwinf1006.wanadoo.fr In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v728) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <514F89ED-DF61-4B98-86B5-FC81D2ABEC43@wanadoo.fr> Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable From: yoann padioleau Subject: Re: [Caml-list] Difference between != and <> Date: Wed, 31 Aug 2005 00:00:54 +0200 To: spiralvoice X-Mailer: Apple Mail (2.728) X-Miltered: at concorde with ID 4314D8BC.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4314D8BC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 pointer:01 caml-list:01 beginner's:01 ocaml:01 beginners:01 bug:01 wrote:01 equality:01 equality:01 bin:01 caml:02 caml:02 archives:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On 30 ao=FBt 05, at 23:49, spiralvoice wrote: > Hi, > > is there a difference between !=3D and <> in Ocaml code? Yes, the same kind of difference that between =3D and =3D=3D "toto" <> "toto" =3D> false "toto" !=3D "toto =3D> true let x =3D "toto" in x !=3D x =3D> false It is a difference between structural equality (deep equality) and =20 physical equality (shallow equality, or "pointer" equality). By the way, one wonderful thing with computer science is that you can =20= 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 > >