On 05/26, Oleg Nesterov wrote:
>
> Yann, Stephane, I am curious if it is possible to change the compiler to
> make par(i, 0, expr) work?
the patch below seems to work ;)
but I am sure you can do something better.
Oleg.
--- a/compiler/evaluate/eval.cpp
+++ b/compiler/evaluate/eval.cpp
@@ -919,7 +919,7 @@ static string evalLabel(const char* src, Tree visited, Tree
localValEnv)
static Tree iteratePar(Tree id, int num, Tree body, Tree visited, Tree
localValEnv)
{
if (num == 0) {
- evalerror(yyfilename, -1, "iteratePar called with 0 iteration", id);
+ return boxRoute(boxInt(0), boxInt(0), boxPar(boxInt(0), boxInt(0)));
}
Tree res = eval(body, visited, pushValueDef(id, tree(num - 1),
localValEnv));
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users