ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120082] [Ruby master Bug#20927] `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything`
@ 2024-12-03  0:48 tenderlovemaking (Aaron Patterson) via ruby-core
  2024-12-13 15:51 ` [ruby-core:120230] " tompng (tomoya ishida) via ruby-core
  0 siblings, 1 reply; 2+ messages in thread
From: tenderlovemaking (Aaron Patterson) via ruby-core @ 2024-12-03  0:48 UTC (permalink / raw)
  To: ruby-core; +Cc: tenderlovemaking (Aaron Patterson)

Issue #20927 has been reported by tenderlovemaking (Aaron Patterson).

----------------------------------------
Bug #20927: `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything`
https://bugs.ruby-lang.org/issues/20927

* Author: tenderlovemaking (Aaron Patterson)
* Status: Open
* ruby -v: ruby 3.3.4 (2024-07-16 revision 425e468d25) [arm64-darwin23]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
These two programs produce different results

```ruby
# shareable_constant_value: experimental_everything

C = { **{ } }

p C
```

```ruby
C = { **{ } }

p C
```

The first one prints this:

```
$ ruby test.rb
{nil=>{}}
```

The second one prints this:

```
$ ruby test.rb
{}
```

I think they should print the same thing.



-- 
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/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:120230] [Ruby master Bug#20927] `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything`
  2024-12-03  0:48 [ruby-core:120082] [Ruby master Bug#20927] `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything` tenderlovemaking (Aaron Patterson) via ruby-core
@ 2024-12-13 15:51 ` tompng (tomoya ishida) via ruby-core
  0 siblings, 0 replies; 2+ messages in thread
From: tompng (tomoya ishida) via ruby-core @ 2024-12-13 15:51 UTC (permalink / raw)
  To: ruby-core; +Cc: tompng (tomoya ishida)

Issue #20927 has been updated by tompng (tomoya ishida).


Pull request: https://github.com/ruby/ruby/pull/12338

----------------------------------------
Bug #20927: `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything`
https://bugs.ruby-lang.org/issues/20927#change-110997

* Author: tenderlovemaking (Aaron Patterson)
* Status: Open
* ruby -v: ruby 3.3.4 (2024-07-16 revision 425e468d25) [arm64-darwin23]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
These two programs produce different results

```ruby
# shareable_constant_value: experimental_everything

C = { **{ } }

p C
```

```ruby
C = { **{ } }

p C
```

The first one prints this:

```
$ ruby test.rb
{nil=>{}}
```

The second one prints this:

```
$ ruby test.rb
{}
```

I think they should print the same thing.



-- 
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/lists/ruby-core.ml.ruby-lang.org/

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

end of thread, other threads:[~2024-12-13 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-03  0:48 [ruby-core:120082] [Ruby master Bug#20927] `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything` tenderlovemaking (Aaron Patterson) via ruby-core
2024-12-13 15:51 ` [ruby-core:120230] " tompng (tomoya ishida) 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).