lookup (Environment)

    # File lib/support.rb, line 27
      def lookup(id)

        warn "#{id} is a string from #{caller[0]}" if String === id

        # HACK: if id is :self, cheat for now until we have full defn remapping
        if id == :self then
          return Type.fucked
        end

        @env.each do |closure|
          return closure[id] if closure.has_key? id
        end

        raise NameError, "Unbound var: #{id.inspect} in #{@env.inspect}"
      end