From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr 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 62F237EC6E for ; Fri, 13 Jun 2014 13:06:45 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of lpw25@cam.ac.uk) identity=pra; client-ip=131.111.8.151; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lpw25@cam.ac.uk"; x-sender="lpw25@cam.ac.uk"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of lpw25@cam.ac.uk) identity=mailfrom; client-ip=131.111.8.151; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lpw25@cam.ac.uk"; x-sender="lpw25@cam.ac.uk"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@ppsw-51.csi.cam.ac.uk) identity=helo; client-ip=131.111.8.151; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lpw25@cam.ac.uk"; x-sender="postmaster@ppsw-51.csi.cam.ac.uk"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQBAOramlODbwiXnGdsb2JhbABarhgGmR8BgQQWDwEBAQEBCAsJCRQohAMBAQQBOj8FCwshJQ8BBEmITQgEzG2FLxcWhUaJAAeEQQSxRw X-IPAS-Result: AiQBAOramlODbwiXnGdsb2JhbABarhgGmR8BgQQWDwEBAQEBCAsJCRQohAMBAQQBOj8FCwshJQ8BBEmITQgEzG2FLxcWhUaJAAeEQQSxRw X-IronPort-AV: E=Sophos;i="5.01,471,1400018400"; d="scan'208";a="67023076" Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Jun 2014 13:06:30 +0200 X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from host31-50-138-167.range31-50.btcentralplus.com ([31.50.138.167]:49636 helo=netbook) by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587) with esmtpsa (PLAIN:lpw25) (TLSv1.2:DHE-RSA-AES128-SHA:128) id 1WvPJV-0006JR-YN (Exim 4.82_3-c0e5623) (return-path ); Fri, 13 Jun 2014 12:06:29 +0100 From: Leo White To: Roberto Di Cosmo Cc: caml-list@inria.fr References: <868up1kug8.fsf@cam.ac.uk> <20140613101233.GE18158@traveler> X-Face: "XWxb[u_Z\PA_Y?9@|IA!!+jTb(/290-*ea/Un$I0B98.$n%eL.;2w*,z]WR#T:,p[ NBd++M7l]#7zj7!{~iw $W-"/=|dVjhT[D{4~gE}gK<2`.6fs!;uqqud]vs2N/3^m7{aS1V, Date: Fri, 13 Jun 2014 12:06:28 +0100 In-Reply-To: <20140613101233.GE18158@traveler> (Roberto Di Cosmo's message of "Fri, 13 Jun 2014 12:12:33 +0200") Message-ID: <864mzpkr0r.fsf@cam.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Caml-list] Adding Dimensions to types > Thanks Leo for this answer: basically, following your code, > if I want n dimension, I will need a phantom type with 2*n > variables, and define the units by putting a difference > in the right 'field', right? Correct. Regards, Leo