Browse thread
[Caml-list] Function forward declaration?
[
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: | -- (:) |
| From: | Andrew Birkett <andy@n...> |
| Subject: | Re: [Caml-list] Function forward declaration? |
Timo.Tapiola@tietoenator.com wrote: > How should I deal with this situation if there is no way to forward declare > functions? You can define mutually recursive functions like this: let rec foo x = bar x and bar x = foo x Andrew ------------------- 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