caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* arrays and type variables...
@ 1998-11-25 13:57 Don Syme
  1998-11-26 15:33 ` Pierre Weis
  1998-11-26 16:03 ` Andreas Rossberg
  0 siblings, 2 replies; 3+ messages in thread
From: Don Syme @ 1998-11-25 13:57 UTC (permalink / raw)
  To: caml-list


Shouldn't "[| [] |]" count as a value??

bash$ ocaml
        Objective Caml version 2.00

# let x = [| [] |];;
val x : '_a list array = [|[]|]
# let x = [];;
val x : 'a list = []
# let x = [| |];;
val x : 'a array = [||]
#

Cheers,
Don




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

end of thread, other threads:[~1998-11-26 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-25 13:57 arrays and type variables Don Syme
1998-11-26 15:33 ` Pierre Weis
1998-11-26 16: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).