ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:92384] [Ruby trunk Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる
       [not found] <redmine.issue-15786.20190423141205@ruby-lang.org>
@ 2019-04-23 14:12 ` tomoyapenguin
  2019-04-26  4:26 ` [ruby-core:92414] " nobu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: tomoyapenguin @ 2019-04-23 14:12 UTC (permalink / raw
  To: ruby-core

Issue #15786 has been reported by tompng (tomoya ishida).

----------------------------------------
Bug #15786: numbered parameterを使ったprocのparametersに記号が現れる
https://bugs.ruby-lang.org/issues/15786

* Author: tompng (tomoya ishida)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-23 trunk f4f66bd11c) [x86_64-darwin17]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
~~~ruby
->{@100}.parameters.map{@2}.join
#=> "!\"\#$%&'()*+,-./:;<=>?@[\\]^`"
~~~

`proc{@100}.parameters` の場合はそれに加え、`[[:opt, nil]...]` になる

`RubyVM::InstructionSequence.of(->{@100}).to_a`
`RubyVM::InstructionSequence.disasm(->{@100})`
にも同様の記号が混ざる

`lambda{@100}.parameters` は `[[:req]]*100`
`proc{@100}.parameters` は `[[:opt, nil]]*100`ではなく`[[:opt]]*100`
になると良いのではないかと思います。(`1.method(:+).parameters #=> [[:req]]` とnilは含まれないのでそれに合わせて)




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

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

* [ruby-core:92414] [Ruby trunk Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる
       [not found] <redmine.issue-15786.20190423141205@ruby-lang.org>
  2019-04-23 14:12 ` [ruby-core:92384] [Ruby trunk Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる tomoyapenguin
@ 2019-04-26  4:26 ` nobu
  2019-07-31 14:10 ` [ruby-core:94074] [Ruby master " nagachika00
  2019-08-26 14:54 ` [ruby-core:94567] " usa
  3 siblings, 0 replies; 4+ messages in thread
From: nobu @ 2019-04-26  4:26 UTC (permalink / raw
  To: ruby-core

Issue #15786 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Closed

Closed at 54eac83b2ad77ddea84fa6d66c09e0bb014cf61e

----------------------------------------
Bug #15786: numbered parameterを使ったprocのparametersに記号が現れる
https://bugs.ruby-lang.org/issues/15786#change-77773

* Author: tompng (tomoya ishida)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-23 trunk f4f66bd11c) [x86_64-darwin17]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
~~~ruby
->{@100}.parameters.map{@2}.join
#=> "!\"\#$%&'()*+,-./:;<=>?@[\\]^`"
~~~

`proc{@100}.parameters` の場合はそれに加え、`[[:opt, nil]...]` になる

`RubyVM::InstructionSequence.of(->{@100}).to_a`
`RubyVM::InstructionSequence.disasm(->{@100})`
にも同様の記号が混ざる

`lambda{@100}.parameters` は `[[:req]]*100`
`proc{@100}.parameters` は `[[:opt, nil]]*100`ではなく`[[:opt]]*100`
になると良いのではないかと思います。(`1.method(:+).parameters #=> [[:req]]` とnilは含まれないのでそれに合わせて)




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

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

* [ruby-core:94074] [Ruby master Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる
       [not found] <redmine.issue-15786.20190423141205@ruby-lang.org>
  2019-04-23 14:12 ` [ruby-core:92384] [Ruby trunk Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる tomoyapenguin
  2019-04-26  4:26 ` [ruby-core:92414] " nobu
@ 2019-07-31 14:10 ` nagachika00
  2019-08-26 14:54 ` [ruby-core:94567] " usa
  3 siblings, 0 replies; 4+ messages in thread
From: nagachika00 @ 2019-07-31 14:10 UTC (permalink / raw
  To: ruby-core

Issue #15786 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED to 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE

ruby_2_6 r67718 merged revision(s) d0ba4abf1a00339ebbb5d405db3240a8bdb7b68b,54eac83b2ad77ddea84fa6d66c09e0bb014cf61e.

----------------------------------------
Bug #15786: numbered parameterを使ったprocのparametersに記号が現れる
https://bugs.ruby-lang.org/issues/15786#change-80304

* Author: tompng (tomoya ishida)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-23 trunk f4f66bd11c) [x86_64-darwin17]
* Backport: 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE
----------------------------------------
~~~ruby
->{@100}.parameters.map{@2}.join
#=> "!\"\#$%&'()*+,-./:;<=>?@[\\]^`"
~~~

`proc{@100}.parameters` の場合はそれに加え、`[[:opt, nil]...]` になる

`RubyVM::InstructionSequence.of(->{@100}).to_a`
`RubyVM::InstructionSequence.disasm(->{@100})`
にも同様の記号が混ざる

`lambda{@100}.parameters` は `[[:req]]*100`
`proc{@100}.parameters` は `[[:opt, nil]]*100`ではなく`[[:opt]]*100`
になると良いのではないかと思います。(`1.method(:+).parameters #=> [[:req]]` とnilは含まれないのでそれに合わせて)




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

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

* [ruby-core:94567] [Ruby master Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる
       [not found] <redmine.issue-15786.20190423141205@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-07-31 14:10 ` [ruby-core:94074] [Ruby master " nagachika00
@ 2019-08-26 14:54 ` usa
  3 siblings, 0 replies; 4+ messages in thread
From: usa @ 2019-08-26 14:54 UTC (permalink / raw
  To: ruby-core

Issue #15786 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE to 2.4: REQUIRED, 2.5: DONE, 2.6: DONE

ruby_2_5 r67758 merged revision(s) d0ba4abf1a00339ebbb5d405db3240a8bdb7b68b,54eac83b2ad77ddea84fa6d66c09e0bb014cf61e.

----------------------------------------
Bug #15786: numbered parameterを使ったprocのparametersに記号が現れる
https://bugs.ruby-lang.org/issues/15786#change-81024

* Author: tompng (tomoya ishida)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-23 trunk f4f66bd11c) [x86_64-darwin17]
* Backport: 2.4: REQUIRED, 2.5: DONE, 2.6: DONE
----------------------------------------
~~~ruby
->{@100}.parameters.map{@2}.join
#=> "!\"\#$%&'()*+,-./:;<=>?@[\\]^`"
~~~

`proc{@100}.parameters` の場合はそれに加え、`[[:opt, nil]...]` になる

`RubyVM::InstructionSequence.of(->{@100}).to_a`
`RubyVM::InstructionSequence.disasm(->{@100})`
にも同様の記号が混ざる

`lambda{@100}.parameters` は `[[:req]]*100`
`proc{@100}.parameters` は `[[:opt, nil]]*100`ではなく`[[:opt]]*100`
になると良いのではないかと思います。(`1.method(:+).parameters #=> [[:req]]` とnilは含まれないのでそれに合わせて)




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

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

end of thread, other threads:[~2019-08-26 14:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-15786.20190423141205@ruby-lang.org>
2019-04-23 14:12 ` [ruby-core:92384] [Ruby trunk Bug#15786] numbered parameterを使ったprocのparametersに記号が現れる tomoyapenguin
2019-04-26  4:26 ` [ruby-core:92414] " nobu
2019-07-31 14:10 ` [ruby-core:94074] [Ruby master " nagachika00
2019-08-26 14:54 ` [ruby-core:94567] " usa

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).