-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Make allocatedinline public and give it a docstring
#60159
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
base: master
Are you sure you want to change the base?
Make allocatedinline public and give it a docstring
#60159
Conversation
This might be good to know, but this is a very bad way to query that. The function might be better named "sometimes_allocated_inline", since it doesn't tell you if it is allocated inline, just if it potentially sometimes might be in some uses. It also doesn't tell you that much about whether it can throw an UndefVarError, since that is also a different query defined differently elsewhere in the manual. |
But as a field of a
I assume you mean |
I know this can be a bit implementation-detail-ey, but I think in practice it's good to be able to know if an object is backed by a pointer or if it's inline allocated. This is also a function used a lot by certain packages, so it'd be good if we made it public API.
I'm very open to suggestions on how to make the docstring more appropriate or not make promises the language devs don't want to make.