Browse thread
Questions concerning modules as first-class values
[
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: | Alain Frisch <alain@f...> |
| Subject: | Re: [Caml-list] Questions concerning modules as first-class values |
On 02/06/2010 19:36, Eric Cooper wrote: > Is it possible to marshal and unmarshal these packages? Yes, this is possible, but: 1. Extremely dangerous: there is no runtime type-checking. If you marshal a module, you need to unmarshal it to the same package type, exactly (no coercion allowed). 2. Rather useless: the code for functions within modules is not marshaled (as for regular functions). If you marshal a module that define functions, you need to unmarshal it in the same program. > That might be a nice way to implement a plug-in architecture. Given the points above, I don't think so! Alain