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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 87648BB81 for ; Fri, 30 Sep 2005 06:56:08 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j8U4u7ra010507 for ; Fri, 30 Sep 2005 06:56:07 +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 GAA13594 for ; Fri, 30 Sep 2005 06:56:06 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8U4u4Jc028437 for ; Fri, 30 Sep 2005 06:56:06 +0200 Received: from localhost (suiren [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.13.1/8.13.1) with ESMTP id j8U4tmGN029980; Fri, 30 Sep 2005 13:55:50 +0900 (JST) Date: Fri, 30 Sep 2005 07:31:51 +0300 (EEST) Message-Id: <20050930.073151.108743127.garrigue@math.nagoya-u.ac.jp> To: cstork@ics.uci.edu Cc: caml-list@inria.fr Subject: Re: [Caml-list] Polymorphic variants in the debugger From: Jacques Garrigue In-Reply-To: <20050929194435.GA9903@anthony.ics.uci.edu> References: <20050929194435.GA9903@anthony.ics.uci.edu> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 433CC567.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 433CC564.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 variants:01 debugger:01 debugger:01 polymorphism:01 ....:98 polymorphic:01 polymorphic:01 jacques:01 jacques:01 variant:02 variant:02 poly:02 uci:02 ocd: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 From: Christian Stork > What does it mean if the debugger prints a polymorphic variable as > > (ocd) print v > v : [> `SomeVariantType.... ] > = > > instead of its concrete content? Is the debugger lacking some > information? I know that for simple programs the debugger prints the > concrete value. It is the same phenomenon as v : 'a = Namely, due to polymorphism, the debugger only knows about part of the possible tags for v. If the actual tag is not in this list, it will only print . Jacques Garrigue