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.
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs