caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Laurent Vibert <lvibert@irisa.fr>
To: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Cc: frisch@clipper.ens.fr, caml-list@inria.fr
Subject: Re: [Caml-list] Comments on type variables
Date: Tue, 11 Jun 2002 15:09:08 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.GSO.4.21.0206111456550.432-100000@lawson.irisa.fr> (raw)
In-Reply-To: <20020607192355Y.garrigue@kurims.kyoto-u.ac.jp>

On Fri, 7 Jun 2002, Jacques Garrigue wrote:

> > Interaction with local modules
> > ------------------------------
> > 
> > Inside a local module, type variables introduced outside the module are
> > invisible:
> > 
> > # let f (x : 'a) =
> >     let module M = struct type t = 'a list end in ();;
> > Unbound type parameter 'a
> 
> To be expected by the rules above. Functions with local modules are
> not functors. 'a is not a type constructor.

this has a draw-back : some local modules don't have any valid
signature :
for exemple, what is the signature of the module M ?

let f (x:'a) = 
  let module M = struct let v = x end
  in ...

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2002-06-11 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-06 17:04 Alain Frisch
2002-06-07  7:07 ` Francois Pottier
2002-06-07 10:23 ` Jacques Garrigue
2002-06-11 13:09   ` Laurent Vibert [this message]
2002-06-09 17:29 ` Pierre Weis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.21.0206111456550.432-100000@lawson.irisa.fr \
    --to=lvibert@irisa.fr \
    --cc=caml-list@inria.fr \
    --cc=frisch@clipper.ens.fr \
    --cc=garrigue@kurims.kyoto-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).