Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
alternative module systems
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-08-20 (16:58)
From: Markus Mottl <mottl@m...>
Subject: Re: alternative module systems
> Yes it is. I wonder what else those features will enable. In particular,
> the use of first class structures to configure a system at run
> time looks really useful to me. This is one of those things I'd normally
> be disposed towards doing with classes. I find it disturbing though, since
> my mental model of modules is that they are "second class". 

It also took me a while to wind my brain around this concept. Given that
modules have some nice properties that do not hold for classes (objects),
being able to create them at runtime and even pass them around as values
looks quite promising. To my knowledge, the described approach is said to
be formally very clean.

> It's a superset of the OCaml module system too, at least that part that is 
> comparable with SML (obviously SML doesn't have classes and such). 

Indeed, it looks as if one could switch "below the hud" without breaking
code, doesn't it?

Best regards,
Markus Mottl

Markus Mottl,,