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

parent 6a96bc46
......@@ -4,39 +4,24 @@
# ISO 15.3.1
module Kernel
# 15.3.1.2.1
def self.`(s)
raise NotImplementedError.new("` not implemented")
end
# 15.3.1.2.1 Kernel.`
# provided by Kernel#`
# 15.3.1.3.5
def `(s)
Kernel.`(s)
raise NotImplementedError.new("backquotes not implemented")
end
##
# Calls the given block repetitively.
#
# ISO 15.3.1.2.8
# provided by Kernel#loop
# def self.loop #(&block)
# while(true)
# yield
# end
# end
# 15.3.1.2.3 Kernel.eval
# 15.3.1.3.12 Kernel#eval
# NotImplemented by mruby core; use mruby-eval gem
# 15.3.1.2.3
def self.eval(s)
raise NotImplementedError.new("eval not implemented")
end
# 15.3.1.3.12
def eval(s)
Kernel.eval(s)
end
##
# ISO 15.3.1.2.8 Kernel.loop
# provided by Kernel#loop
##
# Alias for +Kernel.loop+.
# Calls the given block repetitively.
#
# ISO 15.3.1.3.29
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