Browse thread
ocamlbuild rule with recursive action
-
Daniel_Bünzli
-
DooMeeR
-
Daniel_Bünzli
-
Romain Bardou
- Daniel_Bünzli
-
Romain Bardou
-
Daniel_Bünzli
-
DooMeeR
[
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: | 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.
Daniel
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.