How do I ..

From: David Brown (caml-list@davidb.org)
Date: Sat Dec 18 1999 - 19:09:21 MET


Date: Sat, 18 Dec 1999 10:09:21 -0800 (PST)
To: CAML Mailing <caml-list@inria.fr>
Subject: How do I ..
In-Reply-To: <385B318A.76681803@maxtal.com.au>
From: David Brown <caml-list@davidb.org>

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



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:29 MET