Generic for - endless loop

Issue #18 closed
Fabian Maurer created an issue

Using 0.3.4 alpha. Proably the cause for the problem I mentioned in the forums lately.

Following code:

    num = 0;
    que = {"a", "b", "c"};
    say "START";
    for k,v in next,que do
        num = num+1;
    end
    say "END";

Just some code to test the loop (I wanted to have something in it, so I just count the elements). This loop never finishes.

Comments (2)

  1. Chimaine
    • changed status to open

    This is actually interesting. My development environment doesn't show this behavior, but the compiled jar does. Investigating.

  2. Log in to comment