pkmuldoon (Phil Muldoon)
- Login: pkmuldoon
- Registered on: 01/06/2021
- Last sign in: 01/06/2021
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
02/10/2021
-
10:14 AM Ruby Bug #17619: if false foo=42; end creates a foo local variable set to nil
- While the hoisting issue is meh to mostly okay, I guess, this block:
```
if false
foo = 32
end
defined?(foo)
"local-variable"
```
is arguably an interpreter side effect that can cause problematic issues to developers. Espe... -
09:41 AM Ruby Bug #17619: if false foo=42; end creates a foo local variable set to nil
- pkmuldoon (Phil Muldoon) wrote in #note-3:
> The second code example is incorrect, it should read
> ...
zverok (Victor Shepelev) wrote in #note-2:
> To the best of my understanding, `if` doesn't create its own scope with its own local... -
09:39 AM Ruby Bug #17619: if false foo=42; end creates a foo local variable set to nil
- The second code example is incorrect, it should read
```
1] pry(main)> defined?(bar)
nil
[2] pry(main)> if true
[2] pry(main)* bar = 99
[2] pry(main)* end
[3] pry(main)> defined?(bar)
"local-variable"
[5] pry(main)> ... -
09:37 AM Ruby Bug #17619: if false foo=42; end creates a foo local variable set to nil
- This affects Ruby 2.7.1 and also Ruby 3.0.0. I've not had time to test earlier versions.
-
09:36 AM Ruby Bug #17619 (Rejected): if false foo=42; end creates a foo local variable set to nil
- Take this following code
```
[1] pry(main)> defined?(foo)
nil
[2] pry(main)> if false
[2] pry(main)* foo = 42
[2] pry(main)* end
[3] pry(main)> defined?(foo)
"local-variable"
```
The inner scope inherits the parent ...
01/07/2021
-
04:27 PM Ruby Bug #17516: forking in a ractor causes Ruby to crash
- I'm wondering if we can limit Process calls in the ractor as we do for accessing out of band variables? I've not had a chance to attach GDB to the Ruby VM yet (I have to compile Ruby with -O0 -g3 for things to be clear).
BTW I'm not s...
01/06/2021
-
11:10 AM Ruby Bug #17516: forking in a ractor causes Ruby to crash
- ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20] -
10:56 AM Ruby Bug #17516 (Closed): forking in a ractor causes Ruby to crash
- I just want to point out, there's absolutely no reason to do this, but
r = Ractor.new do
Process.fork()
end
Will cause:
<internal:ractor>:267: warning: Ractor is experimental, and the behavior may change in future versions ...