Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jean-Yves Moyen <guest10@diku.dk>
To: caml-list@inria.fr
Subject: probleme dans les modules - contraintes
Date: Mon, 2 Aug 1999 09:56:06 +0200 (METDST)	[thread overview]
Message-ID: <Pine.HPP.3.95.990802094848.10057B-100000@freja.diku.dk> (raw)

module type Toto = Set.S

module Titi = functor (T : Toto) -> struct end;;

passe sans problemes.



module Tata = functor (T : Toto with type elt=int) -> struct end;;

provoque a la compilation l'erreur "This module type is not a signature"
sur la chaine "Toto". (Je n'ai pas trouve la description de cette erreur
dans le refman, ni dans les FAQ)



module Tutu = functor (T : Set.S with type elt=int) -> struct end;;

passe aussi sans probleme :-(


et apparamment, au vu de la grammaire telle qu'indiquee dans le refman,
les 3 versions devraient passer.

A quoi est du le probleme, et comment faire pour le corriger ?



May the MUF be with you !!!
Jym.





             reply	other threads:[~1999-08-12 10:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-02  7:56 Jean-Yves Moyen [this message]
1999-08-15 12:50 ` Xavier Leroy

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.HPP.3.95.990802094848.10057B-100000@freja.diku.dk \
    --to=guest10@diku.dk \
    --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