Project

General

Profile

Actions

Bug #17429

closed

Prohibit include/prepend in refinement modules

Added by shugo (Shugo Maeda) 11 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:101639]

Description

include/prepend in refinement modules has implementation difficulties such as #17007 and #17379, and tends to be misleading like #17374.
How about to prohibit it in future versions?

Method copy like #17380 may be more convenient, but it's confusing to use names include and prepend because semantics is different from the original ones.


Related issues

Related to Ruby master - Bug #17007: SystemStackError when using super inside Module included and lexically inside refinementClosedshugo (Shugo Maeda)Actions
Related to Ruby master - Bug #17374: Refined methods aren't visible from a refinement's moduleRejectedshugo (Shugo Maeda)Actions
Related to Ruby master - Bug #17379: Refinement with modules redefinition bugClosedko1 (Koichi Sasada)Actions
Related to Ruby master - Bug #18021: Mixins in Refinements: possibly multiple bugs, workarounds are awkwardClosedActions
Related to Ruby master - Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removedAssignedshugo (Shugo Maeda)Actions
Actions

Also available in: Atom PDF