Yes I think adding `RSTRING_RAW_PTR()` is a good way, I would just suggest another name: `RSTRING_START()`. Actually now I see this name was already proposed in https://bugs.ruby-lang.org/issues/19315#note-13. Why I think `RSTRING_ST...Eregon (Benoit Daloze)
Right, `Dir.glob('**/*', flags: File::FNM_DOTMATCH) { ... }` seems a good replacement nowadays, though people might not know about `FNM_DOTMATCH`. `FNM_DOTMATCH` used to have bugs (#17280) which made it error-prone but that's been fixed...Eregon (Benoit Daloze)
This would be great and make it much easier to install these recent Ruby versions on OS which have adopted (or soon will) OpenSSL 4.0, thank you!Eregon (Benoit Daloze)
jeremyevans0 (Jeremy Evans) wrote: > I'm not sure if the semantics for #super\_method for refined methods were ever discussed. I recall https://bugs.ruby-lang.org/issues/17007 (loop with `super` and refinements). That was solved by ...Eregon (Benoit Daloze)
himura467 (Akito Shitara) wrote: > This relies on undocumented GC behavior, incurs ivar table allocation overhead, and leaves lifetime management entirely to the caller. What do you mean by "undocumented GC behavior"? Isn't it only ...Eregon (Benoit Daloze)
The only way to iterate an Array is to use an index from 0 to size, so it's always going to be based on index. chucke (Tiago Cardoso) wrote in #note-4: > I don't see why the element ref can't be kept for post-comparison What if yo...Eregon (Benoit Daloze)
My motivation here is I would like to implement `Thread::Bactrace::Location#source_range`. For this to work in `--parser=parse.y` mode it needs to return the same start/end line/column as Prism in all cases of `RubyVM::AbstractSyntaxTre...Eregon (Benoit Daloze)