[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kturtle] [Bug 329488] New: A typo in the "repeat" command gives surprising results.
From:       Éric Brunet <eric.brunet () lps ! ens ! fr>
Date:       2013-12-31 21:29:02
Message-ID: bug-329488-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=329488

            Bug ID: 329488
           Summary: A typo in the "repeat" command gives surprising
                    results.
    Classification: Unclassified
           Product: kturtle
           Version: 0.8.1 beta
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: cies@kde.nl
          Reporter: eric.brunet@lps.ens.fr

Let's draw a decagon:
repeat 10 {
    forward 10
    tr 36
}

This works nicely. However, assume I made a typo and wrote
repet 10 {
 ...
}
Then, the program executes and repeatqs infinitely many times the enclosed
loop. When I interrupt the execution, an error is made about the misspelled
control.

What should happen is that the loop should not run at all and the error should
be announced early.

This bug is probably related to Bug 317637, even though it is a little bit
different.

Reproducible: Always

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic