Browse thread
[Caml-list] Why warning?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2001-09-12 (08:47) |
From: | David Mentre <David.Mentre@i...> |
Subject: | Re: [Caml-list] Why warning? |
"SooHyoung Oh" <shoh@duonix.com> writes: > Where can I get infomation about this? (ex: 'nnn' page on manual, articles > or books) I've not found any pointer that explains this specific point. > # 1; 2;; > Warning: this expression should have type unit. > - : int = 2 If you decompose this expression, you have: # 1;; - : int = 1 <-- notice the type of '1' is 'int' # 2;; - : int = 2 In an expression 'expr1 ; expr2', expr1 should have type unit as its result is not accessible to expr2. Hope it helps, d. -- David.Mentre@inria.fr Opinions expressed here are only mine. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr