From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 7122CBBAF for ; Tue, 20 Jan 2009 18:39:58 +0100 (CET) From: luc.maranget@inria.fr (Luc Maranget) X-IronPort-AV: E=Sophos;i="4.37,295,1231110000"; d="scan'208";a="22797126" Received: from yquem.inria.fr ([128.93.8.37]) by mail1-relais-roc.national.inria.fr with ESMTP; 20 Jan 2009 18:39:58 +0100 Received: by yquem.inria.fr (Postfix, from userid 18041) id 5C453BBAF; Tue, 20 Jan 2009 18:39:58 +0100 (CET) Date: Tue, 20 Jan 2009 18:39:58 +0100 To: Jacques Carette Cc: caml-list@inria.fr Subject: Re: [Caml-list] polymorphic variants, long form Message-ID: <20090120173958.GA24589@yquem.inria.fr> References: <49760BBF.7090008@mcmaster.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49760BBF.7090008@mcmaster.ca> User-Agent: Mutt/1.5.9i X-Spam: no; 0.00; maranget:01 maranget:01 variants:01 struct:01 foo:01 foo:01 syntax:01 'foo:01 ocaml:01 polymorphic:01 polymorphic:01 luc:01 luc:01 caml-list:01 int:01 > What is the proper 'long name' of a polymorphic variant? > module S = struct type a = [`Foo of int] end > > How do I refer to `Foo without opening S? Both S.`Foo and `S.Foo are > syntax errors. > > Jacques 'Foo does the job, it does not refer to any previous type definition. % ocaml Objective Caml version 3.11.0 # `Foo;; - : [> `Foo ] = `Foo -- Luc