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

Fix expression generation in loop expressions #60

Open
v0dro opened this issue Jun 2, 2018 · 0 comments
Open

Fix expression generation in loop expressions #60

v0dro opened this issue Jun 2, 2018 · 0 comments
Milestone

Comments

@v0dro
Copy link
Member

v0dro commented Jun 2, 2018

This goes wrong. Which it should not.

class String
  def blank?(str string)
    char *s = string
    int i = 0
    
    while i < string.size do
      return false if s[i] != ' '
      i += 1
    end

    return true
  end
end
@v0dro v0dro added this to the v0.2 milestone Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant