caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: brogoff <brogoff@speakeasy.net>
To: Nathan Cooprider <coop@cs.utah.edu>
Cc: ocaml_beginners@yahoogroups.com, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Rephrasing of dynamic module selection problem
Date: Mon, 20 Feb 2006 19:55:50 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0602201950230.17102@shell2.speakeasy.net> (raw)
In-Reply-To: <43FA64C8.1050704@cs.utah.edu>

On Mon, 20 Feb 2006, Nathan Cooprider wrote:
> So I am still trying to get modules to be dynamically (run-time)
> selectable instead of only statically (compile-time).

You can't do that in OCaml. Why don't you use objects or records to hold
the functions, instead of modules?

There are other MLs where you can pack a module into some manipulable
entity, but OCaml isn't one of them. Once you go there I wonder why not
just remove all differences between modules and records, since the two
things seem very similar.

-- Brian


  parent reply	other threads:[~2006-02-21  3:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-21  0:54 Nathan Cooprider
2006-02-21  3:49 ` "ocaml_beginners"::[] " Martin Jambon
2006-02-21  3:55 ` brogoff [this message]
2006-02-21  9:07   ` [Caml-list] " Andreas Rossberg
2006-02-21  9:55 ` Virgile Prevosto

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=Pine.LNX.4.58.0602201950230.17102@shell2.speakeasy.net \
    --to=brogoff@speakeasy.net \
    --cc=caml-list@yquem.inria.fr \
    --cc=coop@cs.utah.edu \
    --cc=ocaml_beginners@yahoogroups.com \
    /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;
as well as URLs for NNTP newsgroup(s).