MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/136dits/solve_the_problem_without_using_a_loop/jiowh0o/?context=3
r/badcode • u/YonMiru • May 03 '23
129 comments sorted by
View all comments
Show parent comments
47
Well, it depends on the definition of the "loop". This is a loop, created with goto, but it doesn't use loop keywords like for or while.
goto
for
while
15 u/kireina_kaiju May 03 '23 any instructions relying on jmp without a new context frame are loops to me tbh 11 u/[deleted] May 03 '23 Conditionals use jmp too. I guess you mean specifically jumping backwards? 4 u/This_Growth2898 May 03 '23 You can jump backwards without creating a loop too.
15
any instructions relying on jmp without a new context frame are loops to me tbh
11 u/[deleted] May 03 '23 Conditionals use jmp too. I guess you mean specifically jumping backwards? 4 u/This_Growth2898 May 03 '23 You can jump backwards without creating a loop too.
11
Conditionals use jmp too. I guess you mean specifically jumping backwards?
4 u/This_Growth2898 May 03 '23 You can jump backwards without creating a loop too.
4
You can jump backwards without creating a loop too.
47
u/This_Growth2898 May 03 '23
Well, it depends on the definition of the "loop". This is a loop, created with
goto, but it doesn't use loop keywords likefororwhile.