Issue 170 in toped: repeat-until has a wrong looping condition

0 views
Skip to first unread message

to...@googlecode.com

unread,
Mar 27, 2014, 7:20:17 PM3/27/14
to toped...@googlegroups.com
Status: Accepted
Owner: krustev....@gmail.com
Labels: Type-Defect Priority-Medium OpSys-All Component-Tell Usability

New issue 170 by krustev....@gmail.com: repeat-until has a wrong looping
condition
http://code.google.com/p/toped/issues/detail?id=170

The traditional repeat/until statements (Pascal, Python,etc) loop until the
condition is false. I tell the statements loops until the condition is true.
The documentation on the web site is in sync with the tool behaviour

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

to...@googlecode.com

unread,
Mar 30, 2014, 9:57:24 AM3/30/14
to toped...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 170 by krustev....@gmail.com: repeat-until has a wrong
looping condition
http://code.google.com/p/toped/issues/detail?id=170

Fixed in r2439

For compatibility with the old behaviour - a pragma is introduced in the
interpreter:

#pragma repeatloop default
to get the traditional behaviour - i.e. as in Pascal, Python etc. (as
introduced by this fix). This is now the default behaviour - so it doesn't
need to be used for a new code

#pragma repeatloop buggy
to revert the exit condition (i.e. to make it work as before this fix) -
i.e. an old code will need this pragma to work as before
Reply all
Reply to author
Forward
0 new messages