caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* recursive datatypes
@ 1997-11-11 16:51 Simon Helsen
  1997-11-12 15:05 ` Xavier Leroy
  1997-11-12 16:16 ` Michel Quercia
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Helsen @ 1997-11-11 16:51 UTC (permalink / raw)
  To: Caml Mailing-list

Why does Caml type-check the following program? It wouldn't in Standard ML
and I don't see the use for it, as it may lead to infinite programs...

(I don't have a french keyboard)

Pourquoi est le programme ci-desous bon type ? C'est ne pas le
cas en Standard ML et je ne comprend pas l'usage pour ca parce que le
programme peut eventuellement cours a l'infini... 

type 'a tree = Tree of 'a

let f x = Tree (f x)

----------------------- Simon Helsen ------------------------ 
--       Wilhelm-Schickard-Institut fuer Informatik        --
--           Arbeitsbereich Programmierung (PU)            --
--            Universitaet Tuebingen, Germany              --
-------------------------------------------------------------
-- http://www-pu.informatik.uni-tuebingen.de/users/helsen/ --






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

end of thread, other threads:[~1997-11-13 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-11 16:51 recursive datatypes Simon Helsen
1997-11-12 15:05 ` Xavier Leroy
1997-11-12 16:16 ` Michel Quercia

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