From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA09981; Sun, 27 Oct 2002 15:11:51 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA09835 for ; Sun, 27 Oct 2002 15:11:50 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (host135-68.pool80116.interbusiness.it [80.116.68.135]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g9REBmD15329 for ; Sun, 27 Oct 2002 15:11:49 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 961C7273CB for ; Sun, 27 Oct 2002 15:10:59 +0100 (CET) Message-ID: <3DBBF3F3.8080600@baretta.com> Date: Sun, 27 Oct 2002 15:10:59 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: [Caml-list] On the equality of functional values Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have been experimenting with equal signs, and I noticed that the equality operator (=) behaves in a strange way with respect to functional values. Objective Caml version 3.06 # (=) = (=) ;; Exception: Invalid_argument "equal: functional value". # let x = (=) in x = x ;; - : bool = true The first line seems to imply that no comparisons are possible between functional values. However, the second line I typed does not raise the same exception. This seems to imply that comparisons are allowed between functional values, too. Now, which of two hypotheses is correct? Alex ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners