caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* type t = ()
@ 2005-06-09 21:22 Richard Jones
  2005-06-09 22:05 ` Vincenzo Ciancia
  2005-06-09 23:43 ` [Caml-list] " Jonathan Bryant
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Jones @ 2005-06-09 21:22 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-06-10 22:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09 21:22 type t = () Richard Jones
2005-06-09 22:05 ` Vincenzo Ciancia
2005-06-10 12:56   ` [Caml-list] " Wolfgang Lux
2005-06-09 23:43 ` [Caml-list] " Jonathan Bryant
2005-06-10  7:55   ` Richard Jones
2005-06-10 13:02     ` Florian Hars
2005-06-10 22:12       ` Jon Harrop

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).