Project

General

Profile

Actions

Feature #8693

closed

lambda invoked by yield acts as a proc with respect to return

Added by rits (First Last) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
[ruby-core:56193]

Description

irb(main):004:0> def m1; yield end; def m2; m1 &->{return 0}; 1 end; m2
=> 0


Files

lambda-yield.patch (936 Bytes) lambda-yield.patch ktsj (Kazuki Tsujimoto), 08/05/2013 10:49 PM
0001-returning-from-lambda.patch (2.6 KB) 0001-returning-from-lambda.patch nobu (Nobuyoshi Nakada), 08/08/2013 10:13 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #15973: Let Kernel#lambda always return a lambdaClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0