ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:48559] [ruby-trunk - Bug #10259] [Open] send を使った attr_writer への書き込みができない場合がある
       [not found] <redmine.issue-10259.20140918175355@ruby-lang.org>
@ 2014-09-18 17:53 ` mtsmfm
  2014-09-19  6:26 ` [ruby-dev:48560] [ruby-trunk - Bug #10259] " mtsmfm
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: mtsmfm @ 2014-09-18 17:53 UTC (permalink / raw
  To: ruby-dev

Issue #10259 has been reported by Fumiaki Matsushima.

----------------------------------------
Bug #10259: send を使った attr_writer への書き込みができない場合がある
https://bugs.ruby-lang.org/issues/10259

* Author: Fumiaki Matsushima
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
```
class Hoge; attr_writer :a; end

Hoge.new.send(:"#{:a}=", 1)
# => 1 (ruby 2.1.2)
# hoge.rb:3:in `<main>': undefined method `a=' (ruby 2.2.0-preview1)
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48560] [ruby-trunk - Bug #10259] send を使った attr_writer への書き込みができない場合がある
       [not found] <redmine.issue-10259.20140918175355@ruby-lang.org>
  2014-09-18 17:53 ` [ruby-dev:48559] [ruby-trunk - Bug #10259] [Open] send を使った attr_writer への書き込みができない場合がある mtsmfm
@ 2014-09-19  6:26 ` mtsmfm
  2014-09-19 11:06 ` [ruby-dev:48562] [ruby-trunk - Bug #10259] [Closed] " nobu
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: mtsmfm @ 2014-09-19  6:26 UTC (permalink / raw
  To: ruby-dev

Issue #10259 has been updated by Fumiaki Matsushima.


ruby 2.2.0dev (2014-09-19 trunk 47640) [x86_64-linux] でも
ruby 2.2.0-preview1 同様に例外が発生することを確認しました。

----------------------------------------
Bug #10259: send を使った attr_writer への書き込みができない場合がある
https://bugs.ruby-lang.org/issues/10259#change-48974

* Author: Fumiaki Matsushima
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
```
class Hoge; attr_writer :a; end

Hoge.new.send(:"#{:a}=", 1)
# => 1 (ruby 2.1.2)
# hoge.rb:3:in `<main>': undefined method `a=' (ruby 2.2.0-preview1)
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48562] [ruby-trunk - Bug #10259] [Closed] send を使った attr_writer への書き込みができない場合がある
       [not found] <redmine.issue-10259.20140918175355@ruby-lang.org>
  2014-09-18 17:53 ` [ruby-dev:48559] [ruby-trunk - Bug #10259] [Open] send を使った attr_writer への書き込みができない場合がある mtsmfm
  2014-09-19  6:26 ` [ruby-dev:48560] [ruby-trunk - Bug #10259] " mtsmfm
@ 2014-09-19 11:06 ` nobu
  2014-09-23  0:30 ` [ruby-dev:48574] [ruby-trunk - Bug #10259] " nobu
  2014-09-27 12:28 ` [ruby-dev:48581] " nobu
  4 siblings, 0 replies; 5+ messages in thread
From: nobu @ 2014-09-19 11:06 UTC (permalink / raw
  To: ruby-dev

Issue #10259 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r47643.

----------
symbol.c: fix dynamic attrset ID

* symbol.c (rb_str_dynamic_intern): check if the stem ID of
  attrset ID is already registered as a static ID.
  [ruby-dev:48559] [Bug #10259]

----------------------------------------
Bug #10259: send を使った attr_writer への書き込みができない場合がある
https://bugs.ruby-lang.org/issues/10259#change-48975

* Author: Fumiaki Matsushima
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
```
class Hoge; attr_writer :a; end

Hoge.new.send(:"#{:a}=", 1)
# => 1 (ruby 2.1.2)
# hoge.rb:3:in `<main>': undefined method `a=' (ruby 2.2.0-preview1)
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48574] [ruby-trunk - Bug #10259] send を使った attr_writer への書き込みができない場合がある
       [not found] <redmine.issue-10259.20140918175355@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2014-09-19 11:06 ` [ruby-dev:48562] [ruby-trunk - Bug #10259] [Closed] " nobu
@ 2014-09-23  0:30 ` nobu
  2014-09-27 12:28 ` [ruby-dev:48581] " nobu
  4 siblings, 0 replies; 5+ messages in thread
From: nobu @ 2014-09-23  0:30 UTC (permalink / raw
  To: ruby-dev

Issue #10259 has been updated by Nobuyoshi Nakada.

Related to Bug #10283: Calling define_method with a dynamic symbol ending in = results in a NoMethodError when calling the method via assignment, until called via send added

----------------------------------------
Bug #10259: send を使った attr_writer への書き込みができない場合がある
https://bugs.ruby-lang.org/issues/10259#change-49061

* Author: Fumiaki Matsushima
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
```
class Hoge; attr_writer :a; end

Hoge.new.send(:"#{:a}=", 1)
# => 1 (ruby 2.1.2)
# hoge.rb:3:in `<main>': undefined method `a=' (ruby 2.2.0-preview1)
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48581] [ruby-trunk - Bug #10259] send を使った attr_writer への書き込みができない場合がある
       [not found] <redmine.issue-10259.20140918175355@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2014-09-23  0:30 ` [ruby-dev:48574] [ruby-trunk - Bug #10259] " nobu
@ 2014-09-27 12:28 ` nobu
  4 siblings, 0 replies; 5+ messages in thread
From: nobu @ 2014-09-27 12:28 UTC (permalink / raw
  To: ruby-dev

Issue #10259 has been updated by Nobuyoshi Nakada.

Duplicated by Bug #10299: alias_method :new_foo=, :"#{:foo}="  doesn't work properly on ruby 2.2.0preview1. added

----------------------------------------
Bug #10259: send を使った attr_writer への書き込みができない場合がある
https://bugs.ruby-lang.org/issues/10259#change-49115

* Author: Fumiaki Matsushima
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
```
class Hoge; attr_writer :a; end

Hoge.new.send(:"#{:a}=", 1)
# => 1 (ruby 2.1.2)
# hoge.rb:3:in `<main>': undefined method `a=' (ruby 2.2.0-preview1)
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-27 12:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10259.20140918175355@ruby-lang.org>
2014-09-18 17:53 ` [ruby-dev:48559] [ruby-trunk - Bug #10259] [Open] send を使った attr_writer への書き込みができない場合がある mtsmfm
2014-09-19  6:26 ` [ruby-dev:48560] [ruby-trunk - Bug #10259] " mtsmfm
2014-09-19 11:06 ` [ruby-dev:48562] [ruby-trunk - Bug #10259] [Closed] " nobu
2014-09-23  0:30 ` [ruby-dev:48574] [ruby-trunk - Bug #10259] " nobu
2014-09-27 12:28 ` [ruby-dev:48581] " nobu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).