Skip to content

Fix expression generation in loop expressions #60

Description

@v0dro

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions