caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alessandro Baretta <alex@baretta.com>
To: Ville-Pertti Keinonen <will@exomi.com>, Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Typing problem with polymorphic variants
Date: Tue, 01 Apr 2003 19:56:52 +0200	[thread overview]
Message-ID: <3E89D2E4.4030902@baretta.com> (raw)
In-Reply-To: <2D6F217A-6471-11D7-848D-000393863F70@exomi.com>



Ville-Pertti Keinonen wrote:
> 
> On Tuesday, Apr 1, 2003, at 20:34 Europe/Helsinki, Alessandro Baretta 
> wrote:
> 
>> This just baffles me.
>>
>> > Values do not match:
>> >   val feature :
>> >     [> `Clear | `Length of int | `Pitch of int
>> >               | `Width of 'a] -> string
>> > is not included in
>> >   val feature : [> `Clear] -> string
> 
> 
> Consider what would happen if you tried to pass a `Length of float, 
> which is acceptable according to the latter signature.
> 
> 

Thank you very much.

This is actually a meaningful comment. I wonder if there is 
any sensible way to do what I'm trying to do.

I'll think it over.

Alex

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-04-01 18:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-01 17:34 Alessandro Baretta
2003-04-01 18:38 ` Ville-Pertti Keinonen
2003-04-01 17:56   ` Alessandro Baretta [this message]
2003-04-01 18:44 ` David Brown
2003-04-02  1:34   ` Jacques Garrigue

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=3E89D2E4.4030902@baretta.com \
    --to=alex@baretta.com \
    --cc=caml-list@inria.fr \
    --cc=will@exomi.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;
as well as URLs for NNTP newsgroup(s).