Version française
Home     About     Download     Resources     Contact us    
Browse thread
try and tail call
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <Christophe.Raffalli@u...>
Subject: Re: [Caml-list] try and tail call

>
> You could do it like this:
>
> exception Propagate of exn
>
> try
>   ...
>   try ...
>   with x -> raise (Propagate x)
> with
>   | Propagate x -> raise x
>   | ...
>
does not work, calls in the second ... are not tail call. (no tail call 
in a try)

Christophe