General

Profile

francktrouillez (Franck Trouillez)

  • Login: francktrouillez
  • Registered on: 08/02/2023
  • Last sign in: 03/08/2024

Issues

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

Activity

03/25/2024

12:16 PM Ruby Revision 54428c2b (git): [ruby/prism] Add missing symbol in comment for binding powers for `||=`
This adds in the descriptive comment the `||=` operator corresponding to `PM_TOKEN_PIPE_PIPE_EQUAL` for pm_binding_powers[PM_TOKEN_MAXIMUM] in prism.c
https://github.com/ruby/prism/commit/315ca16e23
francktrouillez (Franck Trouillez)
12:16 PM Ruby Revision d0513572 (git): [ruby/prism] Fix comment typos in prism.c
This fixes some comment typos in English in the prism.c file. It fixes some typos and follows the current conventions:
- Sentences in comments end with `.`
- Use infinitive instead of 3rd person present simple to describe functions
http...
francktrouillez (Franck Trouillez)

08/02/2023

01:32 PM Ruby Bug #19795: attr_accessor leading to nil values for re-assignment
I got it in the end thanks to a peer. I misunderstood wrongly how this was working:
Running the following snippet helped me understand:
```ruby
# attr_accessor_nil.rb
class A
attr_accessor :a
def initialize
@a = 0
...
francktrouillez (Franck Trouillez)
12:55 PM Ruby Bug #19795: attr_accessor leading to nil values for re-assignment
I guess that it is a local variable, but is it the expected behavior?
As a developer, I expect that I can access `a` without the `self.a`.
Since the following code works as expected without `self`:
```ruby
# attr_accessor_nil.rb
class...
francktrouillez (Franck Trouillez)
12:21 PM Ruby Bug #19795 (Closed): attr_accessor leading to nil values for re-assignment
### Steps to reproduce:
- Create a class with an `attr_accessor` for an instance variable
- Create an instance method that reassign this variable using the current value stored in the variable
- Show that the variable is set to nil du...
francktrouillez (Franck Trouillez)

Also available in: Atom