Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Function forward declaration?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-06 (12:21)
From: Andrew Birkett <andy@n...>
Subject: Re: [Caml-list] Function forward declaration? 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


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: