Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Eric Breck <ebreck@cs.cornell.edu>
To: <caml-list@yquem.inria.fr>
Subject: Re: Caml-list Digest, Vol 20, Issue 50
Date: Sat, 24 Feb 2007 10:49:09 -0500	[thread overview]
Message-ID: <45445A10-75CB-43C5-9D6D-FEA6C4DDCD21@cs.cornell.edu> (raw)
In-Reply-To: <20070224110004.3B145BC6E@yquem.inria.fr>

> It seems like a module functor allows both anonymous
> signatures (structural) and also anonymous argument
> modules (structural), yet you cannot have
> anonymous functor applications: you have to bind the application to
> a module name. If we really had structural typing that name would
> simply be an alias. Why can't we eliminate that name? ***

I think I don't quite understand your question, but strictly based on  
this paragraph, there *is* a way to avoid binding the name of a  
functor result: include.

include Map.Make(Char)

is perfectly valid, although probably not what you want.

Actually, this raises a question I've had; why must "open" be  
followed by a module path, but "include" can be followed by a module  
expression?

-E r i c


           reply	other threads:[~2007-02-24 15:48 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20070224110004.3B145BC6E@yquem.inria.fr>]

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=45445A10-75CB-43C5-9D6D-FEA6C4DDCD21@cs.cornell.edu \
    --to=ebreck@cs.cornell.edu \
    --cc=caml-list@yquem.inria.fr \
    /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