Version française
Home     About     Download     Resources     Contact us    
Browse thread
How do I ..
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: How do I ..
skaller writes:
 > I'm confused:
 > 
 >        Objective Caml version 2.99 (99/12/08)
 > 
 > # let f (lx:x : int) = x + 1;;
 > Syntax error

The labels have to be at the "top".

# let f lx:(x : int) = x + 1;
val f : lx:int -> int = (fun)

Dave Brown