Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 11, 2023

Conversation

dearblue
Copy link
Contributor

@dearblue dearblue commented Mar 5, 2023

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.

None yet

2 participants