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 DAA16296; Thu, 9 Aug 2001 03:29:45 +0200 (MET DST) 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 DAA16289 for ; Thu, 9 Aug 2001 03:29:44 +0200 (MET DST) Received: from femail41.sdc1.sfba.home.com (femail41.sdc1.sfba.home.com [24.254.60.35]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f791ThD04004 for ; Thu, 9 Aug 2001 03:29:43 +0200 (MET DST) Received: from home.com ([24.20.120.160]) by femail41.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010809012942.XQCG21723.femail41.sdc1.sfba.home.com@home.com> for ; Wed, 8 Aug 2001 18:29:42 -0700 Message-ID: <3B71E904.4016B6E7@home.com> Date: Wed, 08 Aug 2001 19:36:04 -0600 From: JayR X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i586) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] native code debugging References: <4.3.2.7.2.20010808113426.02901510@shell16.ba.best.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is the following a side effect of defining these at the top level? Objective Caml version 3.02 # let id x = x;; val id : 'a -> 'a = # let id2 = id id;; val id2 : '_a -> '_a = # id2 7;; - : int = 7 # id2 "w";; This expression has type string but is here used with type int # let id2 = id id;; val id2 : '_a -> '_a = # id2 "w";; - : string = "w" # id2 7;; This expression has type int but is here used with type string # ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr