Project

General

Profile

Actions

Bug #17429

closed

Prohibit include/prepend in refinement modules

Added by shugo (Shugo Maeda) almost 4 years ago. Updated about 3 years ago.

Status:
Closed
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 5 (0 open5 closed)

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 removedClosedshugo (Shugo Maeda)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0