justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
780 stars 105 forks source link

Fixed loop creation of variable even when present #52

Open DarioDaF opened 5 years ago

DarioDaF commented 5 years ago
I HAS A I ITZ 10
VISIBLE I
IM IN YR LP NERFIN YR I TIL BOTH SAEM I AN 0
    VISIBLE I
IM OUTTA YR LP
VISIBLE I

In current branch results in

10
10

without entering the loop because the loop creates a new I in the scope with default value 0