[#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:81970] [Ruby trunk Feature#13733] Dump the delegator instead of the delegated object
From:
huynhquancam@...
Date:
2017-07-08 09:39:22 UTC
List:
ruby-core #81970
Issue #13733 has been reported by huynhquancam (Cam Huynh).
----------------------------------------
Feature #13733: Dump the delegator instead of the delegated object
https://bugs.ruby-lang.org/issues/13733
* Author: huynhquancam (Cam Huynh)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
I would like to let Delegator dump itself instead of the delegated object.
Let's consider the following scenario.
~~~
require "delegate"
class Foo < Delegator
def initialize(the_obj)
@the_obj = the_obj
end
def __getobj__
@the_obj
end
end
foo = Foo.new(nil)
foo.inspect
# nil
~~~
This dump message might cause confusion because foo object itself is not nil. Why don't we be clear and have a dump message like "foo is an Foo class with nil as the delegated object"?
I have submitted an PR on https://github.com/ruby/ruby/pull/1653 for your reference.
--
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>