Actions
Feature #20712
closedmodule should return newly defined module
Feature #20712:
module should return newly defined module
Status:
Closed
Assignee:
-
Target version:
-
Updated by esad (Esad Hajdarevic) almost 2 years ago
- Description updated (diff)
Updated by esad (Esad Hajdarevic) almost 2 years ago
Updated by ufuk (Ufuk Kayserilioglu) almost 2 years ago
module and class don't return nil, they return the value of the last statement in the scope:
There might be code that relies on this fact, so the proposal could be a backward compatibility concern.
On the other hand, if this were to change, since method definitions (i.e. defs) return the name of the method defined and not the method object itself, I think it would make more sense for module/class to return the name of the module/class being defined and not the module/class object itself.
Updated by nobu (Nobuyoshi Nakada) almost 2 years ago
- Status changed from Open to Closed
Actions