summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 12:42:57 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 12:42:57 +0000
commita2b186bee4d4a8aec91cfd46b135f3448f731c54 (patch)
tree47500471349bff02a59339d19d7b846572aef0e8 /eval.c
parent185e2676afec07e07dc2cbe09db0c8a1965b50af (diff)
* eval.c (rb_proc_new): Turn the BLOCK_LAMBDA flag on.
* object.c (sym_to_proc), test/ruby/test_symbol.rb: Add back Symbol#to_proc, now that it passes the tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index e439768090..a9eb3d38c1 100644
--- a/eval.c
+++ b/eval.c
@@ -9636,6 +9636,7 @@ rb_proc_new(func, val)
Data_Get_Struct(proc, struct BLOCK, data);
data->body->nd_state = YIELD_FUNC_AVALUE;
+ data->flags |= BLOCK_LAMBDA;
return proc;
}