Browse thread
[Caml-list] recursive modules redux, & interface files
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | John Max Skaller <skaller@o...> |
| Subject: | Re: [Caml-list] recursive modules redux, & interface files |
Chris Hecker wrote: > > > There are only two options. [And non-local classes are _always_ extern] > > This is not so in Ocaml: you may wish to provide access to a component > > such as a function with a type more constrained than the actual > > implementation. > > Yes yes yes, I know this. I'm saying I understand why I need to type > stuff if there's a difference betwen the .ml and .mli versions (hiding > stuff, restricting stuff, abstracting stuff), and that's fine. I'm > asking why I need to retype stuff if it's identical. BTW: you DON'T actually need an .mli file. Try it. It is only needed when there IS a constraint on 'everything public'. -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr