From: Jonathan Bryant <jtbryant@valdosta.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] type t = ()
Date: Thu, 09 Jun 2005 19:43:44 -0400 [thread overview]
Message-ID: <1118360624.17936.12.camel@chunky.valdosta.edu> (raw)
In-Reply-To: <20050609212234.GA32710@furbychan.cocan.org>
Is this a question or a brief rant...? :)
On Thu, 2005-06-09 at 17:22, Richard Jones wrote:
> I had a program where a type was accidentally defined as (), and the
> error messages confused me for ages until I worked out what was going
> on ...
>
> $ ocaml
> Objective Caml version 3.08.3
>
> # type dummy = ();;
> type dummy = ()
> # let () = Printf.printf "hello";;
> This expression has type unit but is here used with type dummy
>
> Rich.
>
> --
> Richard Jones, CTO Merjis Ltd.
> Merjis - web marketing and technology - http://merjis.com
> Team Notepad - intranets and extranets for business - http://team-notepad.com
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2005-06-09 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 21:22 Richard Jones
2005-06-09 22:05 ` Vincenzo Ciancia
2005-06-10 12:56 ` [Caml-list] " Wolfgang Lux
2005-06-09 23:43 ` Jonathan Bryant [this message]
2005-06-10 7:55 ` [Caml-list] " Richard Jones
2005-06-10 13:02 ` Florian Hars
2005-06-10 22:12 ` Jon Harrop
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=1118360624.17936.12.camel@chunky.valdosta.edu \
--to=jtbryant@valdosta.edu \
--cc=caml-list@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).