From: Pierre Weis <Pierre.Weis@inria.fr>
To: dsyme@microsoft.com (Don Syme)
Cc: caml-list@inria.fr
Subject: Re: arrays and type variables...
Date: Thu, 26 Nov 1998 16:33:18 +0100 (MET) [thread overview]
Message-ID: <199811261533.QAA09182@pauillac.inria.fr> (raw)
In-Reply-To: <39ADCF833E74D111A2D700805F1951EF0B2EF63B@RED-MSG-06> from "Don Syme" at Nov 25, 98 05:57:03 am
> Shouldn't "[| [] |]" count as a value??
>
> bash$ ocaml
> Objective Caml version 2.00
>
> # let x = [| [] |];;
> val x : '_a list array = [|[]|]
[...]
> Cheers,
> Don
No, we can't, since it is equivalent to create a polymorphic reference
(you just have to put the value into a list and to assign this list to
the vector). This would break the type system's safety theorem: it
would lead to ``bus errors''.
Best regards,
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/
next prev parent reply other threads:[~1998-11-26 15:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-25 13:57 Don Syme
1998-11-26 15:33 ` Pierre Weis [this message]
1998-11-26 16:03 ` Andreas Rossberg
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=199811261533.QAA09182@pauillac.inria.fr \
--to=pierre.weis@inria.fr \
--cc=caml-list@inria.fr \
--cc=dsyme@microsoft.com \
/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