Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Alain Frisch <alain@frisch.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Questions concerning modules as first-class values
Date: Thu, 03 Jun 2010 17:31:00 +0200	[thread overview]
Message-ID: <4C07CAB4.3060803@frisch.fr> (raw)
In-Reply-To: <20100602173618.GD23344@localhost>

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



  reply	other threads:[~2010-06-03 15:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 13:14 Dario Teixeira
2010-06-02 13:43 ` [Caml-list] " Julien Signoles
2010-06-02 16:28   ` Alain Frisch
     [not found]   ` <21533_1275496091_o52GSC5l015052_4C068697.5050007@frisch.fr>
2010-06-02 17:36     ` Eric Cooper
2010-06-03 15:31       ` Alain Frisch [this message]
2010-06-04  1:34         ` Jacques Garrigue
2010-06-04  4:59           ` Alain Frisch
2010-06-02 14:05 Dario Teixeira

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=4C07CAB4.3060803@frisch.fr \
    --to=alain@frisch.fr \
    --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