mame/quine-relay · error · RuntimeError

out of bound

Error message

out of bound

What it means

Error "out of bound" thrown in mame/quine-relay.

Source

Thrown at vendor/grass.rb:70

      raise RuntimeError, "not a char"
    end

    def app(m, arg)
      raise RuntimeError, "app undefined"
    end
  end

  class Insn
  end

  class App < Insn
    def initialize(m, n)
      @m, @n = m, n
    end

    def eval(m)
      f, v = m.env[-@m], m.env[-@n]
      raise "out of bound" unless f and v
      f.app m, v
    end

    def pretty_print(q)
      q.text 'App'
      q.group(4, '(', ')') { q.seplist([@m,@n]) { |i| q.text "#{i}" } }
    end
    alias inspect pretty_print_inspect
  end

  class Abs < Insn
    def initialize(body)
      @body = body
    end

    def eval(m)
      m.env.push Fn.new(@body, m.env.dup)
    end

View on GitHub (pinned to c2aa5098d3)

When it happens

Trigger: Thrown at vendor/grass.rb:70 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of mame/quine-relay@c2aa5098d3 (2026-08-21). Data as JSON: /api/errors/6a709752b48ca44e. Report an issue: GitHub.