Skip to content

Add Crystal::Macros::TypeNode#has_inner_pointers?#14847

Merged
straight-shoota merged 6 commits intocrystal-lang:masterfrom
HertzDevil:feature/typenode-has_inner_pointers
Aug 8, 2024
Merged

Add Crystal::Macros::TypeNode#has_inner_pointers?#14847
straight-shoota merged 6 commits intocrystal-lang:masterfrom
HertzDevil:feature/typenode-has_inner_pointers

Conversation

@HertzDevil
Copy link
Contributor

This allows Pointer.malloc and Reference#allocate to be implemented without compiler primitives eventually, see #13589 and #13481. This might be helpful to diagnostic tools related to the GC too.

Note that like TypeNode#instance_vars, this wouldn't work correctly if called in the top-level phase.

HertzDevil and others added 2 commits August 5, 2024 19:12
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 5, 2024
@straight-shoota straight-shoota merged commit 74f0093 into crystal-lang:master Aug 8, 2024
@HertzDevil HertzDevil deleted the feature/typenode-has_inner_pointers branch August 13, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants