English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
recursive or loop
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-03-06 (12:08)
From: Michael Wohlwend <micha-1@f...>
Subject: recursive or loop

A friend of mine changed a recursive algorithm to an imperative one since that 
is (he said) the only way to temporary stop the calculation and save the 
state to disk and be able to continue it later. To continue he just loads the 
saved state and jumps into his loop.

Is that true? How do I jump out of a recursive algorithm and be able to 
continue it at the same point?