[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:81916] [Ruby trunk Bug#13717] Calling lambda with keyword arguments inconsistent behavior
From:
michal.hantl@...
Date:
2017-07-05 10:51:16 UTC
List:
ruby-core #81916
Issue #13717 has been reported by hakunin (Michal Hantl).
----------------------------------------
Bug #13717: Calling lambda with keyword arguments inconsistent behavior
https://bugs.ruby-lang.org/issues/13717
* Author: hakunin (Michal Hantl)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-darwin16]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Context: I am running a callback hook that can have multiple arguments (or none) and multiple keywords (or none).
The idea is to run this and just pass on the params:
~~~
hook.call(*args, **kw_args)
~~~
But I've encountered an issue which is an inconsistency at the same time:
~~~
hook = lambda { |a|
}
hook.call(:a, **{}) # works
kws = {};
hook.call(:a, **kws) # wrong number of arguments (2 for 1)
~~~
I would expect the params to just be passed if there are any, or none passed at all, if the object supplied is empty.
--
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>