I found this by trying to use const to define a local constant inside a function and it broke compilation of another function. I'd suggest const should either be disallowed inside a function, or the constants defined in this way should be local to that function.
PS I hope raising these issues doesn't seem like I'm complaining, I'm updating the Acorn port to ALPHA1 and doing some general tweaking. ALPHA1 generally looks great!
I'm not sure if this is a bug or not but it seems a little counter-intuitive so I thought I'd mention it.
If I modify test.pla as follows:
and compile it, I get an error in a later function which uses range as an argument name:
I found this by trying to use const to define a local constant inside a function and it broke compilation of another function. I'd suggest const should either be disallowed inside a function, or the constants defined in this way should be local to that function.
PS I hope raising these issues doesn't seem like I'm complaining, I'm updating the Acorn port to ALPHA1 and doing some general tweaking. ALPHA1 generally looks great!