Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
799c9b30
Commit
799c9b30
authored
Jun 05, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove eval (that only raises NotImplementedError) from the core; ref #2354
parent
6a96bc46
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
25 deletions
+10
-25
mrblib/kernel.rb
mrblib/kernel.rb
+10
-25
No files found.
mrblib/kernel.rb
View file @
799c9b30
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment