Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
*NEW*
Current Version on
STEAM
:
16.026
Logfile:
EN
,
DE
Webchat:
Visit the chat
Home
Help
Search
Login
Register
GLBasic forum
»
Main forum
»
Bug Reports
»
BREAK/CONTINUE does not work inside REPEAT/UNTIL
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: BREAK/CONTINUE does not work inside REPEAT/UNTIL (Read 1914 times)
ampos
Prof. Inline
Posts: 1600
BREAK/CONTINUE does not work inside REPEAT/UNTIL
«
on:
2010-Oct-15 »
The compiler gives an error
error : BREAK outside of FOR/WHILE
if the BREAK/CONTINUE is inside a REPEAT/UNTIL loop
Logged
check my web and/or my blog
http://diniplay.blogspot.com
(devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE
Moru
Administrator
Prof. Inline
Posts: 1790
Re: BREAK/CONTINUE does not work inside REPEAT/UNTIL
«
Reply #1 on:
2010-Oct-15 »
The manual says break is only used in FOR and WHILE loops. So not a bug but mabe a feature request? :-)
Logged
https://moru.neocities.org/
ampos
Prof. Inline
Posts: 1600
Re: BREAK/CONTINUE does not work inside REPEAT/UNTIL
«
Reply #2 on:
2010-Oct-15 »
LOL, you name it
Logged
check my web and/or my blog
http://diniplay.blogspot.com
(devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE
Scott_AW
Mr. Polyvector
Posts: 214
Re: BREAK/CONTINUE does not work inside REPEAT/UNTIL
«
Reply #3 on:
2010-Oct-15 »
Isn't repeat fairly new?
I remember when I went to 8 I had to rename a goto.
On the plus side I was happy to see a UNTIL loop.
Logged
Current Project, Orbital Contract Defense
http://gamejolt.com/games/adventure/code-name-ocd/9887/
BlackShadow now open source/resource(requires duke3d)
http://gamejolt.com/games/adventure/black-shadow-3d/9885/
MrTAToad
Guest
Re: BREAK/CONTINUE does not work inside REPEAT/UNTIL
«
Reply #4 on:
2010-Oct-15 »
Yes, REPEAT/UNTIL is fairly new.
Technically, using BREAK inside a REPEAT/UNTIL loop is poor form really (using it in WHILE could also be regarded as the same), as you should be using the condition to break out of the loop.
Logged
Scott_AW
Mr. Polyvector
Posts: 214
Re: BREAK/CONTINUE does not work inside REPEAT/UNTIL
«
Reply #5 on:
2010-Oct-15 »
Have you tried using CONTINUE and triggering the UNTIL?
What do you have going on in the loop?
Logged
Current Project, Orbital Contract Defense
http://gamejolt.com/games/adventure/code-name-ocd/9887/
BlackShadow now open source/resource(requires duke3d)
http://gamejolt.com/games/adventure/black-shadow-3d/9885/
Print
Pages: [
1
]
Go Up
« previous
next »
GLBasic forum
»
Main forum
»
Bug Reports
»
BREAK/CONTINUE does not work inside REPEAT/UNTIL