#21 nesting ifs errors

closed-fixed
7
2007-12-14
2007-12-14
futurdorko
No

Forgetting to correctly close the ifs statements in a nested contest makes gretl stopping responding to user requests. If they come from scripts/console, they're ignored, while through the interface it still works, but crashes with ols (and other commands as well, i suppose).
The only way to recover functionalities is to restart gretl.

This is an example script.

<i>
nulldata 10

a = 1
if a = 0
print "a"
else
if a = 1
print "b"
else
print"c"
</i>

Discussion

  • Sven S.

    Sven S. - 2007-12-14

    Logged In: YES
    user_id=1330711
    Originator: NO

    Confirmed with 1.7.0 on windows xp. (running script, opening data, trying ols -> boom)

    So I'm cranking up the priority.

    -sven

     
  • Sven S.

    Sven S. - 2007-12-14
    • priority: 5 --> 7
     
  • Allin Cottrell

    Allin Cottrell - 2007-12-14
    • assigned_to: nobody --> allin
    • status: open --> closed-fixed
     
  • Allin Cottrell

    Allin Cottrell - 2007-12-14

    Logged In: YES
    user_id=330339
    Originator: NO

    Should be fixed in CVS.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks