caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Question on typing
@ 2001-07-11 13:52 Christian RINDERKNECHT
  2001-07-11 19:49 ` Xavier Leroy
  2001-07-12 13:03 ` Andreas Rossberg
  0 siblings, 2 replies; 3+ messages in thread
From: Christian RINDERKNECHT @ 2001-07-11 13:52 UTC (permalink / raw)
  To: caml-list; +Cc: Christian RINDERKNECHT

Dear list members,

I have a question about typing, but which is not uniquely related to
Caml. 

Could someone tell me the reason why a type variable cannot be used as
a type constructor, like in:

type 'a t = K of bool 'a;;

or

type 'a t = {x : 'a 'a};;

I suspect non-decidability of type inference (higher-order
unification), but I am not an expert of that topic. Also, is type
verification undecidable? Is it due to functional types? What happen
is there is no (value) functions?

Best regards,

-- 

Christian

-----------------------------------------------------------------------
Christian Rinderknecht                     Phone +33 (0)1 60 76 44 43
Institut National des Télécommunications   Fax   +33 (0)1 60 76 47 11
Département Logiciels Réseaux (LOR)        WWW
9, Rue Charles Fourier, F-91011 Évry Cedex
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-12 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-11 13:52 [Caml-list] Question on typing Christian RINDERKNECHT
2001-07-11 19:49 ` Xavier Leroy
2001-07-12 13:03 ` Andreas Rossberg

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).