From: eregontp@... Date: 2020-12-08T20:37:10+00:00 Subject: [ruby-core:101323] [Ruby master Bug#17374] Refined methods aren't visible from a refinement's module Issue #17374 has been updated by Eregon (Benoit Daloze). Status changed from Open to Rejected marcandre (Marc-Andre Lafortune) wrote in #note-11: > The question remains: if it's a bad idea to `include/prepend` modules inside a `refine` block, could we not make it a good idea? Would it be technically difficult to duplicate the methods in the included module, import them and active them in the refinement? That actually means duplicating the inline caches and so probably also the bytecode, etc. So it doesn't seem a good idea at least from a memory footprint point of view. Given shugo is AFAIK responsible for the refinements specification and he confirmed it's intended behavior, I'll close this issue (but feel free to continue the discussion). ---------------------------------------- Bug #17374: Refined methods aren't visible from a refinement's module https://bugs.ruby-lang.org/issues/17374#change-89017 * Author: marcandre (Marc-Andre Lafortune) * Status: Rejected * Priority: Normal * Assignee: shugo (Shugo Maeda) * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/ Unsubscribe: