Skip to content

Fix expression generation in loop expressions #60

@v0dro

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions