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
ocamlbuild rule with recursive action
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-12-03 (09:59)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] ocamlbuild rule with recursive action

Le 3 déc. 08 ŕ 10:44, Romain Bardou a écrit :

> Well, you can also simply execute the commands yourself, in a loop,  
> using Command.execute or Command.execute_many.

But doesn't this break things ? Actions are supposed to build the  
command not execute it.


P.S. something like

Rec of 'a * ('a -> action -> [ `Stop | `Step of command * 'a ])

would be better or

Rec of 'a * ('a -> action-> command * 'a) with the convention that  
returning Nop stops the recursion.