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
Inconsistency between MRI and JRuby source location. #8079
Comments
Probably not, because it would require us to walk the stack to get it. Maybe can do it in 9.5 when we can rely on the lighter weight StackWalker API in JVM. We could do other tricks too like making a special call site for it, but I dunno if it's worth all that. |
I worked around the problem, but I just thought I'd mention the inconsistency. |
Ideally 100% compatibility should be attained, but specifically for the "attr", I actually never
I like the trailing '?'. These days, when a class has too many @foo variables, I just store them in a single Evidently many other ruby users may not do something like this, but I just wanted |
@rubyFeedback The only missing compatibility here is that methods defined by |
I just pushed #8215 as an example using stack-walking to get the filename and line number, and as expected it's pretty slow. A specialized call site would make this more efficient (basically free) and we could limit this slow mechanism to when |
I believe
attr
is not having the source location set.The text was updated successfully, but these errors were encountered: