caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jon Harrop <jonathandeanharrop@googlemail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Private type syntax and error message
Date: Fri, 12 Sep 2008 16:04:56 +0100	[thread overview]
Message-ID: <200809121604.56179.jon@ffconsultancy.com> (raw)
In-Reply-To: <1221226999.5024.7.camel@asus.localdomain>

On Friday 12 September 2008 14:43:19 Colonna Francois wrote:
> Hello,
>
> if, as I found in the documentation, I write :
>
> # type my_int = private int;;

Where does that appear in the documentation? Google returns zero hits...

> I get the message : "This fixed type is not an object or variant"
>
> 1. The message is very obscure

How would you write it more clearly?

> 2. why this syntax is not implemented as it should be ?

What do you expect it to do that might work? If it created an abstract type 
the type would be useless, having no way to construct or destructure values 
of that type...

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e


  parent reply	other threads:[~2008-09-12 14:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 13:43 Colonna Francois
2008-09-12 15:01 ` [Caml-list] " Colonna Francois
2008-09-12 15:04 ` Jon Harrop [this message]
2008-09-12 14:19   ` Dario Teixeira
2008-09-12 14:37     ` Virgile Prevosto

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=200809121604.56179.jon@ffconsultancy.com \
    --to=jonathandeanharrop@googlemail.com \
    --cc=caml-list@yquem.inria.fr \
    /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).