[#89806] [Ruby trunk Bug#15306] Generate prelude.c using miniruby — v.ondruch@...
Issue #15306 has been reported by vo.x (Vit Ondruch).
3 messages
2018/11/15
[ruby-core:89734] [Ruby trunk Bug#15285] lambda return behavior regression from #14639
From:
nate@...
Date:
2018-11-06 21:20:41 UTC
List:
ruby-core #89734
Issue #15285 has been reported by nmueller (Nate Mueller). ---------------------------------------- Bug #15285: lambda return behavior regression from #14639 https://bugs.ruby-lang.org/issues/15285 * Author: nmueller (Nate Mueller) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- The change in ea15ceddbef2cc4c459c1ad5796e43ae9fa2cbf1 to use rb_yield_force_blockarg changes the behavior of returns called inside a passed lambda function. In 2.5.1 and below, including before the enum.c change, the attached script would print `true`. In 2.5.3 it prints `false`. ---Files-------------------------------- test.rb (118 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>