AnyDSL / impala

An imperative and functional programming language

Home Page:https://anydsl.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Partial Evaluation is being performed unexpectedly

tonywmnix opened this issue · comments

Hi,
For the unroll.impala test, if I add a version of range() after a call to @ range it is still doing partial evaluation. Is this expected?

let unroll = 10;
for i in @range(0, unroll) {
    arr(0) = foo(i);
}
for i in range(0, unroll) { // Is being evaluated
    arr(0) = foo(i);
}

no, this is a bug. However, it should be fixed in the current new_master branch. However, this branch still has some other issues. So we haven't merged back yet.

fixed in new_master