caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: brogoff <brogoff@speakeasy.net>
To: Kenneth Knowles <kknowles@berkeley.edu>
Cc: Shaddin Doghmi <shaddin@mitre.org>, caml-list@inria.fr
Subject: Re: [Caml-list] including signature (mli) in struct (ml)
Date: Wed, 18 Aug 2004 16:44:22 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0408181642050.13552@shell2.speakeasy.net> (raw)
In-Reply-To: <20040818230358.GA25660@tallman.kefka.frap.net>

On Wed, 18 Aug 2004, Kenneth Knowles wrote:
> On Wed, Aug 18, 2004 at 06:52:35PM -0400, Shaddin Doghmi wrote:
> > this redundancy can be annoying, is there a way to declare Aout only
> > once and still be able to refer to it in b.ml ? How about including
> > a.mli in a.ml somehow? something along the lines of include in C would
> > do it, where including a.h in a.c would make it unnecessary to define
> > something in both...
>
> Someone may have a more elegant solution to this, but when I have a bunch of
> types that I don't want to have to repeat, I put them in a .ml file without a
> corresponding .mli file.

If it's just types (not exceptions) I find it a bit more suggestive to put them
in a .mli file. Not much difference.

-- Brian

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2004-08-18 23:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-18 22:52 Shaddin Doghmi
2004-08-18 23:03 ` Kenneth Knowles
2004-08-18 23:44   ` brogoff [this message]
2004-08-22 22:19     ` Stefano Zacchiroli

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.0408181642050.13552@shell2.speakeasy.net \
    --to=brogoff@speakeasy.net \
    --cc=caml-list@inria.fr \
    --cc=kknowles@berkeley.edu \
    --cc=shaddin@mitre.org \
    /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).