From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q26Gd7X1023060 for ; Tue, 6 Mar 2012 17:39:07 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AskNAMk8Vk/RVdY2kGdsb2JhbABDgi8EY4IrrigBA4EDCCIBAQEBCQkNBxQEI4IWAg8dARscAgMSEA8CBRYLAgsDAgECARERAQUBFhkIAQEeh2UEn0SCXQqLKEyCcYUyP4EMAQULgSSJFXWCA4IMgRYElT+FY4E6hxs9hAQ X-IronPort-AV: E=Sophos;i="4.73,540,1325458800"; d="scan'208";a="147862712" Received: from mail-bk0-f54.google.com ([209.85.214.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 06 Mar 2012 17:39:02 +0100 Received: by mail-bk0-f54.google.com with SMTP id jc3so8032147bkc.27 for ; Tue, 06 Mar 2012 08:39:02 -0800 (PST) Received-SPF: pass (google.com: domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com designates 10.204.128.75 as permitted sender) client-ip=10.204.128.75; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com designates 10.204.128.75 as permitted sender) smtp.mail=5764c029b688c1c0d24a2e97cd764f@gmail.com; dkim=pass header.i=5764c029b688c1c0d24a2e97cd764f@gmail.com Received: from mr.google.com ([10.204.128.75]) by 10.204.128.75 with SMTP id j11mr13139459bks.2.1331051942543 (num_hops = 1); Tue, 06 Mar 2012 08:39:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=4XTbWnz/FvCq8q8tKpZSbvp3+j92F4z1n6H1u6/WNNU=; b=P7KHw3r8qGnzIIVSFQNmVKEzBKXDi1dlzFybeLxBYb/ObIzRfZSWXPIbVym1rFxo7z n/eSzYLP1J2RdaZHXcDzZBuI6SeH3ifaXgyDvjj6fvkx9NVkaEgtCvpZbZyYSSwbYMNj HJ4cKM3fLxDeHtjahYNF/gsXOOkPsxvJ65yIypskm7TPaT+nySPSLv54kLNazGGADCGW ibwBoxTAqU0rLnZci3xap9xoLoy7xKQYe9UpXftA1Em86R5msfKMGe75OkvIUqt4Hcj4 zMGk5SraqJQQLRdCroGPAsXsen8HobF+QpCgCjTlU1xy/WZqyLrShieDcdlrP2Vbm6A5 lg6A== Received: by 10.204.128.75 with SMTP id j11mr10241461bks.2.1331051942457; Tue, 06 Mar 2012 08:39:02 -0800 (PST) Received: from [172.27.6.206] ([213.106.240.92]) by mx.google.com with ESMTPS id y9sm33268510bkw.5.2012.03.06.08.39.00 (version=SSLv3 cipher=OTHER); Tue, 06 Mar 2012 08:39:01 -0800 (PST) Message-ID: <4F563DA3.5050201@gmail.com> Date: Tue, 06 Mar 2012 16:38:59 +0000 From: =?UTF-8?B?TWF0ZWogS2/FocOtaw==?= <5764c029b688c1c0d24a2e97cd764f@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Caml-list] crazy ocaml compiler implementation question Hello, In the file: typing/path.mli contains the following definition: type t = Pident of Ident.t | Pdot of t * string * int | Papply of t * t What is the semantics of third parameter? In the implementation I see it either ignored or passed verbatime around but I have failed to spot a place where it is actually used for something so I failed to figure out its meaning. (ocaml{c,opt,opt.opt} can perhaps even implement a warning option for detecting defined variant parameters that are either ignored or only uselessly passed around in this way. :-) ) More precisely, when constructing Pdot variant value, when should one use anything other than Path.nopos? Thanks in advance for any help.