From: Vladimir Vyskocil <vyskocil@math.unice.fr>
To: caml-list@pauillac.inria.fr
Subject: OCaml 2.0
Date: Wed, 26 Aug 1998 16:18:35 +0200 [thread overview]
Message-ID: <35E4193B.30969200@math.unice.fr> (raw)
Bonjour,
Suite a la sortie de la version 2.0 d'Objective Caml, nous nous sommes
lance dans le "portage"
de notre logiciel depuis la version 1.07 avec l'aide de ocaml1to2. Nous
avons rencontre les
problemes suivants :
- Nous avons des classes marquees closed qui posent probleme avec
Ocaml2.0, l'explication donnee
dans le fichier README de ocaml1to2 :
<<It usually suffices to introduce coercions (self :> c) from the
self type to a known closed class type c >>
n'est pas tres parlante pour nous, pourriez vous donner un exemple
simple ?
- Dans l'exemple suivant :
class a =
object (self)
method call_pipo x = x#pipo self
end
;;
Some type variables are unbound in this type:
class a : object ('a) method call_pipo : < pipo : 'a -> 'b; .. > -> 'b
end
The method call_pipo has type
< pipo : < call_pipo : 'a; .. > -> 'b; .. > -> 'b as 'a
where 'c is unbound
Le type 'c n'apparait pas dans la signature de la classe, a quoi
correspond t'il ?
- Dans l'exemple suivant :
class a =
object (self)
method call_pipo (x:b) = x#pipo self
end
and b a =
object
method pipo (x:a):a = x
end;;
This expression has type < call_pipo : b -> 'a; .. >
but is here used with type 'b
Self type cannot escape its class
pourriez vous expliquer ce message d'erreur et donner une maniere de
re-ecrire cela ?
Merci par avance
--
Vyskocil Vladimir
vvyskoci@sophia.inria.fr
http://www.inria.fr/safir/WHOSWHO/Vladimir.html
next reply other threads:[~1998-08-29 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-26 14:18 Vladimir Vyskocil [this message]
1998-08-29 17:52 ` Jerome Vouillon
1998-08-30 10:38 ` boos
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=35E4193B.30969200@math.unice.fr \
--to=vyskocil@math.unice.fr \
--cc=caml-list@pauillac.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