From: Yotam Barnoy <yotambarnoy@gmail.com>
To: Leo White <lpw25@cam.ac.uk>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Problem extending the Standard library
Date: Wed, 27 Aug 2014 11:01:00 -0400 [thread overview]
Message-ID: <CAN6ygOmy=p7sagH1w4BZM8-w5pKzaZ4WzATtEOwH8KNyY9954g@mail.gmail.com> (raw)
In-Reply-To: <y2afvgi9dw1.fsf@kingston.cl.cam.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
Good point -- wasn't looking at the map.mli file. Thanks.
Yotam
On Wed, Aug 27, 2014 at 10:59 AM, Leo White <lpw25@cam.ac.uk> wrote:
> >
> > Can anyone tell me why the compiler complained about Empty being an
> unbound constructor when it's declared in Map.Make,
> > which I include?
> >
>
> I don't think `Empty` is declared in the interface of Map.Make, it may
> be declared in the implementation but it is not available in the
> interface. Making it available in the interface would break abstraction:
> it would force `Map.Make` to keep using that particular implementation.
>
> Regards,
>
> Leo
>
[-- Attachment #2: Type: text/html, Size: 1009 bytes --]
next prev parent reply other threads:[~2014-08-27 15:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 14:52 Yotam Barnoy
2014-08-27 14:59 ` Leo White
2014-08-27 15:01 ` Yotam Barnoy [this message]
2014-08-27 15:04 ` Pierrick Couderc
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='CAN6ygOmy=p7sagH1w4BZM8-w5pKzaZ4WzATtEOwH8KNyY9954g@mail.gmail.com' \
--to=yotambarnoy@gmail.com \
--cc=caml-list@inria.fr \
--cc=lpw25@cam.ac.uk \
/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).