Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

For Loops and Range Syntax #46

Open
sunjay opened this issue Feb 26, 2017 · 0 comments
Open

For Loops and Range Syntax #46

sunjay opened this issue Feb 26, 2017 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Feb 26, 2017

// The type of i is usize
// i goes from 1 <= i < 10
// This currently must be a static, finite counter
// Variables are not supported as counter limits
// This is basically implemented as a brainfuck loop that goes from
// 0 to (end-start) and start is added to the cell *within* the loop
for i in 1..10 {
    stdout.writeln("i = ", counter);
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant