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=2.7 required=5.0 tests=RCVD_NUMERIC_HELO, SPF_SOFTFAIL,UNPARSEABLE_RELAY autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 64D7ABC0A for ; Thu, 21 Jun 2007 17:21:24 +0200 (CEST) Received: from cirse.extra.cea.fr (cirse.extra.cea.fr [132.166.172.102]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5LFLO9e011113 for ; Thu, 21 Jun 2007 17:21:24 +0200 Received: from nephilia.intra.cea.fr (nephilia.intra.cea.fr [132.166.88.33]) by cirse.extra.cea.fr (8.13.8/8.13.4/CEAnet-Internet.7.0) with ESMTP id l5LFLNin028863 for ; Thu, 21 Jun 2007 17:21:23 +0200 (MEST) Received: from muguet.saclay.cea.fr (muguet.saclay.cea.fr [132.166.192.6]) by nephilia.intra.cea.fr (8.13.8/8.13.8) with ESMTP id l5LFLMZW018454 for ; Thu, 21 Jun 2007 17:21:22 +0200 (envelope-from julien.signoles@cea.fr) Received: from levau.intra.cea.fr (levau.intra.cea.fr [132.166.88.52]) by muguet.saclay.cea.fr (8.13.8/8.13.4/CEAnet-internes.7.0) with ESMTP id l5LFLMos005383 for ; Thu, 21 Jun 2007 17:21:22 +0200 (MEST) Received: from LAXA.intra.cea.fr ([132.166.64.42]) by levau.intra.cea.fr with Microsoft SMTPSVC(6.0.3790.1830); Thu, 21 Jun 2007 17:20:53 +0200 Received: from 132.166.135.80 ([132.166.135.80]) by LAXA.intra.cea.fr ([132.166.64.53]) with Microsoft Exchange Server HTTP-DAV ; Thu, 21 Jun 2007 15:20:53 +0000 Received: from is005140 by laxa.intra.cea.fr; 21 Jun 2007 17:25:13 +0200 Subject: generalization and let module From: Julien SIGNOLES To: caml-list@yquem.inria.fr Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: CEA Date: Thu, 21 Jun 2007 17:25:13 +0200 Message-Id: <1182439513.19841.88.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 X-OriginalArrivalTime: 21 Jun 2007 15:20:53.0993 (UTC) FILETIME=[C2457D90:01C7B417] X-Miltered: at discorde with ID 467A9774.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; signoles:01 signoles:01 struct:01 cea:01 module:03 module:03 let:03 let:03 fun:08 i'm:09 example:10 example:10 'f':11 end:12 julien:12 Hello all, Just a single question: why is 'f' not generalizable in the following example? I'm not able to find an example using any "let module" and breaking the type safety. ===== module M = struct end let f = let module N = M in fun x -> x ===== -- Julien