* [Caml-list] type annotations for function values [Answer]
@ 2004-03-26 8:31 fis
0 siblings, 0 replies; only message in thread
From: fis @ 2004-03-26 8:31 UTC (permalink / raw)
To: caml-list
i wrote:
> [...]
> which is horribly inelegant. why can't i do something like this?
>
> let ((f x y) : (float -> float -> int)) = 3 in 4;;
thanks for all your replies. here is the solution:
let f (x : float) (y : float) : int = 3 in 4
regards,
matthias
-------------------
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-26 8:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-26 8:31 [Caml-list] type annotations for function values [Answer] fis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox