4 ms·
Basically what Odin does yea?
by PKop 10mo ago
Basically what Odin does yea?
- btown 10mo agoHadn’t known about Odin but yes! > Operations such as new, free and delete by default will use context.allocator, which can be overridden by the user. When an override happens all called procedures will inherit the new context and use the same allocator. https://pkg.odin-lang.org/core/mem/ https://pkg.odin-lang.org/core/mem/
- Zambyte 10mo agoThis sounds a lot like having an allocator as a parameter object a la Scheme[0]. Really cool! [0] https://standards.scheme.org/corrected-r7rs/r7rs-Z-H-6.html#TAG:__tex2page_sec_4.2.6 https://standards.scheme.org/corrected-r7rs/r7rs-Z-H-6.html#...