caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Till Varoquaux" <till.varoquaux@gmail.com>
To: "William W Smith" <sesquized@sbcglobal.net>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] type abbreviation is cyclic
Date: Wed, 24 Oct 2007 13:40:57 -0400	[thread overview]
Message-ID: <9d3ec8300710241040i618b5f32ka0d7d29e107534ec@mail.gmail.com> (raw)
In-Reply-To: <344522.90449.qm@web82102.mail.mud.yahoo.com>

Type b doesn't exactly make much sens to me.
While I could easilly define a value of type b (fun x:int _ -> x ) I
really don't see the point. I'm gessing you'r trying to pass a chain
of alternative functions (In which case this seems to be the  wrong
way).
Could you give an exemple (without using Obj.magic) were you'd
actually need such a type.
On 10/24/07, William W Smith <sesquized@sbcglobal.net> wrote:
> I wonder whether this error is an example of the language being defined more
> restrictively than required.  What is the reason that I get these results?
>
> type a  = int -> one -> int and one = Unused | One of a;;
> type b = int -> b -> int
>
> type a is accepted while type b is not. (b gives "The type abbreviation b is
> cyclic"  However, in the uses that I intended, there won't be any actual
> difference between the two.
>
> I'd appreciate an explanation about why there is difference  between a and
> b.
>
> Thanks
>
> Bill Smith
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list:
> http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>


-- 
http://till-varoquaux.blogspot.com/


  reply	other threads:[~2007-10-24 17:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24 17:27 William W Smith
2007-10-24 17:40 ` Till Varoquaux [this message]
2007-10-24 22:01   ` [Caml-list] " Dmitri Boulytchev
2007-10-24 17:44 ` Brian Hurt
2007-10-24 18:09   ` Till Varoquaux
2007-10-24 20:40     ` Jon Harrop
2007-10-25  1:34       ` Dmitri Boulytchev
2007-10-24 21:36 ` Dmitri Boulytchev
2007-10-24 21:38 ` Dmitri Boulytchev
2007-10-25 11:22 William Smith

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=9d3ec8300710241040i618b5f32ka0d7d29e107534ec@mail.gmail.com \
    --to=till.varoquaux@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=sesquized@sbcglobal.net \
    /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).