remove eval (that only raises NotImplementedError) from the core; ref #2354

parent 6a96bc46
...@@ -4,39 +4,24 @@ ...@@ -4,39 +4,24 @@
# ISO 15.3.1 # ISO 15.3.1
module Kernel module Kernel
# 15.3.1.2.1 # 15.3.1.2.1 Kernel.`
def self.`(s) # provided by Kernel#`
raise NotImplementedError.new("` not implemented")
end
# 15.3.1.3.5 # 15.3.1.3.5
def `(s) def `(s)
Kernel.`(s) raise NotImplementedError.new("backquotes not implemented")
end end
## ##
# Calls the given block repetitively. # 15.3.1.2.3 Kernel.eval
# # 15.3.1.3.12 Kernel#eval
# ISO 15.3.1.2.8 # NotImplemented by mruby core; use mruby-eval gem
# provided by Kernel#loop
# def self.loop #(&block)
# while(true)
# yield
# end
# end
# 15.3.1.2.3 ##
def self.eval(s) # ISO 15.3.1.2.8 Kernel.loop
raise NotImplementedError.new("eval not implemented") # provided by Kernel#loop
end
# 15.3.1.3.12
def eval(s)
Kernel.eval(s)
end
## ##
# Alias for +Kernel.loop+. # Calls the given block repetitively.
# #
# ISO 15.3.1.3.29 # ISO 15.3.1.3.29
def loop def loop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment