caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Paul A. Steckler" <steck@stecksoft.com>
To: Yotam Barnoy <yotambarnoy@gmail.com>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Default value in module
Date: Tue, 12 Sep 2017 17:29:03 -0400	[thread overview]
Message-ID: <CAMSKV5c0r-nbx6gL=jKTU44YghM3qY+qV0xdTFSW-8HA-TWaYw@mail.gmail.com> (raw)
In-Reply-To: <CAN6ygOkPQaWKwHRK66rno2c1g0-+cVuFGnCfc73AzTPWdZ_E8g@mail.gmail.com>

On Tue, Sep 12, 2017 at 5:21 PM, Yotam Barnoy <yotambarnoy@gmail.com> wrote:
> The easiest thing to do is to create a prototype module with the value
> you want, and to include that module (include Foo) in any module you
> want to have that basic structure.

Yes, but that means I have to write "include Foo" to get the default
value. My goal is to avoid writing anything extra when I'm using the
default value.

  reply	other threads:[~2017-09-12 21:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12 20:00 Paul A. Steckler
2017-09-12 21:17 ` SP
2017-09-12 21:21 ` Yotam Barnoy
2017-09-12 21:29   ` Paul A. Steckler [this message]
2017-09-13 18:56     ` Martin Jambon
     [not found] ` <21484041-b7ed-33f0-4434-6817a82289fe@lexifi.com>
2017-09-12 21:49   ` Paul A. Steckler
2017-09-13 18:57     ` Martin Jambon

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='CAMSKV5c0r-nbx6gL=jKTU44YghM3qY+qV0xdTFSW-8HA-TWaYw@mail.gmail.com' \
    --to=steck@stecksoft.com \
    --cc=caml-list@inria.fr \
    --cc=yotambarnoy@gmail.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).