ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:92543] [Ruby trunk Bug#15825] Fix a case where numbered parameters should not be allowed
       [not found] <redmine.issue-15825.20190505044003@ruby-lang.org>
@ 2019-05-05  4:40 ` merch-redmine
  2019-05-05  5:48 ` [ruby-core:92546] " nobu
  1 sibling, 0 replies; 2+ messages in thread
From: merch-redmine @ 2019-05-05  4:40 UTC (permalink / raw)
  To: ruby-core

Issue #15825 has been reported by jeremyevans0 (Jeremy Evans).

----------------------------------------
Bug #15825: Fix a case where numbered parameters should not be allowed
https://bugs.ruby-lang.org/issues/15825

* Author: jeremyevans0 (Jeremy Evans)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-05-05 trunk 84e71e9fc1) [x86_64-openbsd]
* Backport: 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONTNEED
----------------------------------------
Because `proc{|| @1}` is a syntax error, the following should
also be syntax errors:

```ruby
proc { |  
| @1}

proc { |; a| @1 }
```

The attached patch makes both of those cases syntax errors.

---Files--------------------------------
fix-numbered-parameters-opt_bv_decl.patch (1.49 KB)


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

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

* [ruby-core:92546] [Ruby trunk Bug#15825] Fix a case where numbered parameters should not be allowed
       [not found] <redmine.issue-15825.20190505044003@ruby-lang.org>
  2019-05-05  4:40 ` [ruby-core:92543] [Ruby trunk Bug#15825] Fix a case where numbered parameters should not be allowed merch-redmine
@ 2019-05-05  5:48 ` nobu
  1 sibling, 0 replies; 2+ messages in thread
From: nobu @ 2019-05-05  5:48 UTC (permalink / raw)
  To: ruby-core

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


Probably I might think the latter case could be allowed (and forgot to separate these cases), but it doesn't seem worth complicating.

----------------------------------------
Bug #15825: Fix a case where numbered parameters should not be allowed
https://bugs.ruby-lang.org/issues/15825#change-77906

* Author: jeremyevans0 (Jeremy Evans)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-05-05 trunk 84e71e9fc1) [x86_64-openbsd]
* Backport: 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONTNEED
----------------------------------------
Because `proc{|| @1}` is a syntax error, the following should
also be syntax errors:

```ruby
proc { |  
| @1}

proc { |; a| @1 }
```

The attached patch makes both of those cases syntax errors.

---Files--------------------------------
fix-numbered-parameters-opt_bv_decl.patch (1.49 KB)


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

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

end of thread, other threads:[~2019-05-05  5:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15825.20190505044003@ruby-lang.org>
2019-05-05  4:40 ` [ruby-core:92543] [Ruby trunk Bug#15825] Fix a case where numbered parameters should not be allowed merch-redmine
2019-05-05  5:48 ` [ruby-core:92546] " 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).