Browse thread
[Caml-list] strange behaviour of ocamldoc
[
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: | 2004-09-15 (13:33) |
From: | Jon Harrop <jon@j...> |
Subject: | [Caml-list] Confused |
How come this works: # let rec build = function 0 -> [] | n -> 1e-6 :: build (n-1);; val build : int -> float list = <fun> # let test = 1. :: build 1000;; val test : float list = ... But this does not: # let rec build = function 0 -> [] | n -> 1e-6 :: build (n-1) in let test = 1. :: build 1000;; Syntax error Am I being stupid? Cheers, Jon. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners