Newsgroups: fa.caml
From: Jean-Marie Gaillourdet <j...@gaillourdet.net>
Date: Mon, 03 Jul 2006 13:58:28 UTC
Local: Mon, Jul 3 2006 9:58 am
Subject: Re: [Caml-list] Type from local module would escape its scope?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hello, On 03.07.2006, at 15:19, Bruno De Fraine wrote: > While the following is rejected: Let us extend your example with the following code: > let foo (ignore: 'a -> unit) = > With an error on the expression "Foo.value" stating that "The type > let foo (ignore: 'a -> unit) = let bar (ignore: 'b -> unit) = > let module Foo : FOO = > struct > type t = int > let value = 1 > end in > ignore Foo.value > ;; let module Foo : FOO = struct type t = float let value = 1.0 end in ignore Foo.value let baz () = Which type should x have? Best Regards, PS: didn't compile that code -----BEGIN PGP SIGNATURE----- iD8DBQFEqR28NIUNP/I5YOgRAoRcAKDKWlxVFBKYfdmBvPJ/T2LYrwKu+ACfYJnK _______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||