From: szegedy@t-online.de (Christian Szegedy)
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Nested modules: signature restriction possible?
Date: Sun, 07 Nov 2004 02:12:43 +0100 [thread overview]
Message-ID: <418D768B.1000505@t-online.de> (raw)
In-Reply-To: <20041106233957.GA7443@muffin>
I am writing a code with almost the same functionality and
I was also bugged by the same problem and posed the same
question in the functional mailing list.
Julien Signoles was kind enough to answer:
> I also encounter this annoying situation. In general, I solve it in the
> following way:
>
> module type A = sig type t val f: t -> t end
> module type B = sig include A val g: t -> t end
> module type C' = sig type c val h: c -> c end
> module type C = sig include A include C' with type c = t end
> module type D = sig include B include C' with type c = t end
>
> Sadly, this solution uses some additional types and with-type constraints
> but IMHO it is the best when your signatures are big.
>
> Hope this helps,
I've got a similar algebra package as yours, but my design is quite
pragmatic: I have only programmed those parts I really needed.
I send my version in a separate mail.
It would be fun to cooperate, if you would like to.
(What I currently think about is the GCD computation over multivariate
polynomial fields (it is needed for the functions field), and it
is hard to get it efficient. After I solved it, I will want to programm
Groebner base manipluation.)
Best regards, Christian
prev parent reply other threads:[~2004-11-07 1:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-06 23:39 Wesley W. Terpstra
2004-11-07 1:12 ` Christian Szegedy [this message]
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=418D768B.1000505@t-online.de \
--to=szegedy@t-online.de \
--cc=caml-list@inria.fr \
/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