Version française
Home     About     Download     Resources     Contact us    
Browse thread
type t = ()
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Bryant <jtbryant@v...>
Subject: Re: [Caml-list] type t = ()
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