ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:115889] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0
@ 2023-12-25 12:19 paddor (Patrik Wenger) via ruby-core
  2023-12-25 12:24 ` [ruby-core:115890] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: paddor (Patrik Wenger) via ruby-core @ 2023-12-25 12:19 UTC (permalink / raw)
  To: ruby-core; +Cc: paddor (Patrik Wenger)

Issue #20084 has been reported by paddor (Patrik Wenger).

----------------------------------------
Bug #20084: Breaking change with Regexp.new on 3.3.0
https://bugs.ruby-lang.org/issues/20084

* Author: paddor (Patrik Wenger)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Regexp.new used to take up to 3 arguments, but now only 1..2 are allowed:

```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
ArgumentError: wrong number of arguments (given 3, expected 1..2)
from (pry):1:in `initialize'
```


On 3.2.2:
```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
=> /abc/in
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:115890] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0
  2023-12-25 12:19 [ruby-core:115889] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0 paddor (Patrik Wenger) via ruby-core
@ 2023-12-25 12:24 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2023-12-25 13:21 ` [ruby-core:115891] " nobu (Nobuyoshi Nakada) via ruby-core
  2023-12-27 12:10 ` [ruby-core:115932] " paddor (Patrik Wenger) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2023-12-25 12:24 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #20084 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Closed

It's intentional changes. see https://bugs.ruby-lang.org/issues/18797

----------------------------------------
Bug #20084: Breaking change with Regexp.new on 3.3.0
https://bugs.ruby-lang.org/issues/20084#change-105847

* Author: paddor (Patrik Wenger)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Regexp.new used to take up to 3 arguments, but now only 1..2 are allowed:

```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
ArgumentError: wrong number of arguments (given 3, expected 1..2)
from (pry):1:in `initialize'
```


On 3.2.2:
```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
=> /abc/in
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:115891] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0
  2023-12-25 12:19 [ruby-core:115889] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0 paddor (Patrik Wenger) via ruby-core
  2023-12-25 12:24 ` [ruby-core:115890] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2023-12-25 13:21 ` nobu (Nobuyoshi Nakada) via ruby-core
  2023-12-27 12:10 ` [ruby-core:115932] " paddor (Patrik Wenger) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2023-12-25 13:21 UTC (permalink / raw)
  To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)

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


I think we needed to add it to Compatibility issues in NEWS.md.

----------------------------------------
Bug #20084: Breaking change with Regexp.new on 3.3.0
https://bugs.ruby-lang.org/issues/20084#change-105848

* Author: paddor (Patrik Wenger)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Regexp.new used to take up to 3 arguments, but now only 1..2 are allowed:

```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
ArgumentError: wrong number of arguments (given 3, expected 1..2)
from (pry):1:in `initialize'
```


On 3.2.2:
```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
=> /abc/in
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:115932] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0
  2023-12-25 12:19 [ruby-core:115889] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0 paddor (Patrik Wenger) via ruby-core
  2023-12-25 12:24 ` [ruby-core:115890] " hsbt (Hiroshi SHIBATA) via ruby-core
  2023-12-25 13:21 ` [ruby-core:115891] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2023-12-27 12:10 ` paddor (Patrik Wenger) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: paddor (Patrik Wenger) via ruby-core @ 2023-12-27 12:10 UTC (permalink / raw)
  To: ruby-core; +Cc: paddor (Patrik Wenger)

Issue #20084 has been updated by paddor (Patrik Wenger).


hsbt (Hiroshi SHIBATA) wrote in #note-2:
> It's intentional changes. see https://bugs.ruby-lang.org/issues/18797

Thanks.

nobu (Nobuyoshi Nakada) wrote in #note-3:
> I think we needed to add it to Compatibility issues in NEWS.md.

Yeah that would be nice.

----------------------------------------
Bug #20084: Breaking change with Regexp.new on 3.3.0
https://bugs.ruby-lang.org/issues/20084#change-105884

* Author: paddor (Patrik Wenger)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Regexp.new used to take up to 3 arguments, but now only 1..2 are allowed:

```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
ArgumentError: wrong number of arguments (given 3, expected 1..2)
from (pry):1:in `initialize'
```


On 3.2.2:
```
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
=> /abc/in
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

end of thread, other threads:[~2023-12-27 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-25 12:19 [ruby-core:115889] [Ruby master Bug#20084] Breaking change with Regexp.new on 3.3.0 paddor (Patrik Wenger) via ruby-core
2023-12-25 12:24 ` [ruby-core:115890] " hsbt (Hiroshi SHIBATA) via ruby-core
2023-12-25 13:21 ` [ruby-core:115891] " nobu (Nobuyoshi Nakada) via ruby-core
2023-12-27 12:10 ` [ruby-core:115932] " paddor (Patrik Wenger) via ruby-core

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 NNTP newsgroup(s).