Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Re: Caml-list Digest, Vol 20, Issue 50
       [not found] <20070224110004.3B145BC6E@yquem.inria.fr>
@ 2007-02-24 15:49 ` Eric Breck
  0 siblings, 0 replies; only message in thread
From: Eric Breck @ 2007-02-24 15:49 UTC (permalink / raw)
  To: caml-list

> 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-24 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070224110004.3B145BC6E@yquem.inria.fr>
2007-02-24 15:49 ` Caml-list Digest, Vol 20, Issue 50 Eric Breck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox