From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id CD2D77EEB9 for ; Mon, 26 Oct 2015 14:20:59 +0100 (CET) IronPort-PHdr: 9a23:PSPSHx9ZONCu+v9uRHKM819IXTAuvvDOBiVQ1KB91OgcTK2v8tzYMVDF4r011RmSDdidsqsP1rOempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lR8iL1o/qjqibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0vcVJVKG/e6UjUZRZCi4nOiY7/oej4RLKSA/K4noHTk0XlABJCk7L9kepcI32t37RtvB8wzWdJc3BbS47VC7qu6xrUh7zlCAfN3g592zYh9ZYkL8eqh+7ox15hYLZNtLGfMFid7/QKItJDVFKWdxcAnRM Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=christoph.hoeger@tu-berlin.de; spf=None smtp.mailfrom=christoph.hoeger@tu-berlin.de; spf=None smtp.helo=postmaster@mail.tu-berlin.de Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of christoph.hoeger@tu-berlin.de) identity=pra; client-ip=130.149.7.33; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="christoph.hoeger@tu-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of christoph.hoeger@tu-berlin.de) identity=mailfrom; client-ip=130.149.7.33; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="christoph.hoeger@tu-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.tu-berlin.de) identity=helo; client-ip=130.149.7.33; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="postmaster@mail.tu-berlin.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CnAABYKC5WnCEHlYJehHnAKYdNPBABAQEBAQEBARABAQEBAQgLCQkhIwuCK4IxDwFFNgIFFgsCCwMCAQIBSw0GAgEBiCwEokePcZI5gSKSUIFFBZY2e5U8kxo4gXUMAVCBXXGHGAEBAQ X-IPAS-Result: A0CnAABYKC5WnCEHlYJehHnAKYdNPBABAQEBAQEBARABAQEBAQgLCQkhIwuCK4IxDwFFNgIFFgsCCwMCAQIBSw0GAgEBiCwEokePcZI5gSKSUIFFBZY2e5U8kxo4gXUMAVCBXXGHGAEBAQ X-IronPort-AV: E=Sophos;i="5.20,201,1444687200"; d="scan'208";a="151772922" Received: from mail.tu-berlin.de ([130.149.7.33]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Oct 2015 14:20:40 +0100 X-tubIT-Incoming-IP: 91.65.128.77 Received: from ip5b41804d.dynamic.kabel-deutschland.de ([91.65.128.77] helo=[192.168.178.42]) by mail.tu-berlin.de (exim-4.76/mailfrontend-8) with esmtpsa [UNKNOWN:AES128-SHA:128] for id 1ZqhhU-0004WQ-ks; Mon, 26 Oct 2015 14:20:37 +0100 To: "caml-list@inria.fr" From: =?UTF-8?Q?Christoph_H=c3=b6ger?= Organization: =?UTF-8?Q?Technische_Universit=c3=a4t_Berlin?= Message-ID: <562E28A4.4020009@tu-berlin.de> Date: Mon, 26 Oct 2015 14:20:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.10.26.131215 X-PMX-Spam: Gauge=IIIIIII, Probability=0%, Report='' Subject: [Caml-list] Why is the parameter of a type declaration a coretype? I am writing a syntax extension for OCaml and the following puzzles me: and type_declaration = { ptype_name: string loc; ptype_params: (core_type * variance) list; ^^^^^^^^^ Why is a type-parameter a core_type and not just a string? What is the meaning of a non-variable parameter? -- Christoph Höger Technische Universität Berlin Fakultät IV - Elektrotechnik und Informatik Übersetzerbau und Programmiersprachen Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin Tel.: +49 (30) 314-24890 E-Mail: christoph.hoeger@tu-berlin.de