Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#216 - enable break and continue within for loops #222

Merged
merged 9 commits into from
Jun 21, 2018

Conversation

kensoh
Copy link
Member

@kensoh kensoh commented Jun 21, 2018

more details at #216

kensoh and others added 9 commits June 15, 2018 04:12
use casper.bypass() to count how many steps to teleport to and bypass when a break statement is issued. nice catch @Aussiroth !

Co-Authored-By: Alvin Yan <aussiroth@users.noreply.github.com>
Co-Authored-By: Victor Loh <lohvht@users.noreply.github.com>
doesn't work but don't break existing break test case.
eg

for n from 1 to infinity
{
echo n
}

if constant too big, takes very large to build stack before execution. trade-off decided to be 1024
@kensoh kensoh merged commit 4ebe951 into master Jun 21, 2018
@kensoh kensoh deleted the for_loop_break_continue branch June 21, 2018 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant