General

Profile

daveola (David Stellar)

  • Login: daveola
  • Registered on: 05/13/2022
  • Last sign in: 10/31/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 2 3

Activity

11/01/2024

05:42 PM Ruby Bug #20858: multiple parallel assignments are inconsistent
mame (Yusuke Endoh) wrote in #note-1:
> Currently, `a, b = c, d = 3, 4` is interpreted as `a, b = c, (d = 3, 4)`. Whether it is good or not.
Ah - that's a good point. So it can be fixed with: `a, b = (c, d = 3, 4)`
I didn't see t...
daveola (David Stellar)
12:20 AM Ruby Bug #20858 (Rejected): multiple parallel assignments are inconsistent
I may have terminology wrong, so apologies. For this bug I'm going to use "multiple assignment" to refer to using multiple assignment operators in a line, such as:
``` ruby
a = b = c = 1
```
And then parallel assignment to refer...
daveola (David Stellar)

05/06/2023

03:06 AM Ruby Bug #19631 (Open): module_eval does not propulate absolute_path for Kernel.caller_locations

I am using module_eval and noticing that since ruby 3.2 the Kernel locations do not have absolute_path for any of the eval code, though the path is available. This is a regression since at least ruby 3.0 which still works.
I am on ...
daveola (David Stellar)

06/14/2022

10:52 PM Ruby Bug #18780: Incorrect binding receiver for C API rb_eval_string()
alanwu (Alan Wu) wrote in #note-15:
> I spoke too soon! Flipping the `if` in `demo.rb`:
> ...
Doesn't the change in https://bugs.ruby-lang.org/issues/18487 (raising a kernel error) imply that this doesn't need to be fixed?
Also, tha...
daveola (David Stellar)

06/11/2022

07:12 PM Ruby Bug #18780: Incorrect binding receiver for C API rb_eval_string()
Eregon (Benoit Daloze) wrote in #note-10:
> I'm reluctant to reply since you seem to ignore my comments as a Ruby implementer.
I'm sorry you feel that way, and I regret posting to the truffleruby discussion by mistake, I lost track o...
daveola (David Stellar)

05/17/2022

05:50 PM Ruby Bug #18780: Incorrect binding receiver for C API rb_eval_string()

> You have just made this literally impossible to write in ruby.
And before you say "just have the caller pass in the binding" - keep in mind that Kernel::eval does not require this. So you would not, for example, be able to make c...
daveola (David Stellar)
05:47 PM Ruby Bug #18780: Incorrect binding receiver for C API rb_eval_string()
Eregon (Benoit Daloze) wrote in #note-6:
> OK, finally the issue is clear.
> ...
This is 100% not what I was hoping for.
1) That seems like it will break a number of things, if your binding is no longer correct. What if you try to ...
daveola (David Stellar)
05:02 PM Ruby Bug #18780: Incorrect binding receiver for C API rb_eval_string()
Eregon (Benoit Daloze) wrote in #note-3:
> It's the same as TOPLEVEL_BINDING, isn't it?
> ...
No, it's not. It's the same as the caller's binding, *except* that the receiver/self is set to TOPLEVEL.
In other words:
## RUBY CODE
```
c...
daveola (David Stellar)
04:47 AM Ruby Bug #18780: Incorrect binding receiver for C API rb_eval_string()
That's actually not really true, there *is* a caller binding, as evidenced by the fact that you can *get* the binding inside of the eval.
So it sets up the binding() properly, *except* that binding().receiver is *incorrect* and it eff...
daveola (David Stellar)

05/13/2022

11:00 PM Ruby Bug #18780 (Closed): Incorrect binding receiver for C API rb_eval_string()

% ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
(Though looking at the source code this problem still exists in ruby 3.0)
The rb_eval_string() is seemingly capable of everything that eval is capable of, ...
daveola (David Stellar)

Also available in: Atom