From: Andreas Rossberg <rossberg@ps.uni-sb.de>
To: caml-list@inria.fr
Cc: Neel Krishnaswami <neelk@alum.mit.edu>
Subject: Re: [Caml-list] Yelling
Date: Wed, 23 Apr 2003 17:33:15 +0200 [thread overview]
Message-ID: <3EA6B23B.2020804@ps.uni-sb.de> (raw)
In-Reply-To: <16038.43443.192953.705022@h00045a4799d6.ne.client2.attbi.com>
Neel Krishnaswami wrote:
>
> module type FOO =
> sig
> type t
> val v : t
> end
>
> module type BAR = (* This is a subtype of FOO *)
> sig
> type t
> val v : t
> val v' : t
> end
>
> Notice that there's no syntax to abbreviate the definition of BAR;
Sure there is:
module type BAR =
sig
include FOO
val v' : t
end
should work like a charm. ;-)
--
Andreas Rossberg, rossberg@ps.uni-sb.de
"Computer games don't affect kids; I mean if Pac Man affected us
as kids, we would all be running around in darkened rooms, munching
magic pills, and listening to repetitive electronic music."
- Kristian Wilson, Nintendo Inc.
-------------------
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
next prev parent reply other threads:[~2003-04-23 15:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 14:16 Eray Ozkural
2003-04-23 14:56 ` Neel Krishnaswami
[not found] ` <3EA6AB00.7020305@post.tepkom.ru>
2003-04-23 15:31 ` Neel Krishnaswami
2003-04-23 15:50 ` Eray Ozkural
2003-04-24 7:58 ` Hendrik Tews
2003-04-23 15:33 ` Andreas Rossberg [this message]
2003-04-23 15:56 ` Eray Ozkural
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=3EA6B23B.2020804@ps.uni-sb.de \
--to=rossberg@ps.uni-sb.de \
--cc=caml-list@inria.fr \
--cc=neelk@alum.mit.edu \
/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