Skip to content

Don't switch constant search path from modules to Object#5946

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:const-search
Mar 11, 2023
Merged

Don't switch constant search path from modules to Object#5946
matz merged 1 commit into
mruby:masterfrom
dearblue:const-search

Conversation

@dearblue

@dearblue dearblue commented Mar 5, 2023

Copy link
Copy Markdown
Contributor

Previously, for example, it was possible to retrieve the String class as follows:

% bin/mruby -e 'p Comparable::Enumerable::Errno::GC::Kernel::Math::ObjectSpace::String'
String

Note that this patch affects the API function mrb_const_get().

Previously, for example, it was possible to retrieve the `String` class as follows:

```console
% bin/mruby -e 'p Comparable::Enumerable::Errno::GC::Kernel::Math::ObjectSpace::String'
String
```

Note that this patch affects the API function `mrb_const_get()`.
@dearblue dearblue requested a review from matz as a code owner March 5, 2023 11:47
@matz matz merged commit 894ce40 into mruby:master Mar 11, 2023
@dearblue dearblue deleted the const-search branch March 14, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants