Max Alekseyev on Fri, 05 Nov 2021 17:47:59 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

return statement from inside parfor does not work


The following function never terminates despite executing the 'return' statement:

f() = parfor(i=0,+oo, if(i==100,print(i);return(i)) );

Calling f() does print '100', but ignores the 'return' statement. What's wrong?

Regards,
Max