caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* value restriction
@ 2010-01-01 23:05 Jacques Le Normand
  2010-01-02 16:25 ` Jacques Le Normand
  0 siblings, 1 reply; 5+ messages in thread
From: Jacques Le Normand @ 2010-01-01 23:05 UTC (permalink / raw)
  To: caml-list caml-list

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

Hello caml-list,
with respect to the value restriction, what exactly constitutes a value?
the textbook definition doesn't seem to hold, since the following
generalizes:

let f = let x = 1 in fun g h x -> g (h x);;

while this won't:

let f () = let x = (fun x -> x) (fun x -> x) in fun g h x -> g (h x);;

cheers

--Jacques L.

[-- Attachment #2: Type: text/html, Size: 490 bytes --]

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

end of thread, other threads:[~2010-01-03  0:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-01 23:05 value restriction Jacques Le Normand
2010-01-02 16:25 ` Jacques Le Normand
2010-01-02 16:46   ` [Caml-list] " Andrej Bauer
2010-01-02 23:09     ` Philippe Wang
2010-01-03  0:30     ` Kaustuv Chaudhuri

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