Re:Integrating Zig and SwiftUI
by 59nadir on Sunday May 28, 2023 @02:11PM
(#36106360)
> Another question i have : are there any kind of mechanism to ensure at least some kind of memory safety with regards to memory deallocation ?
In general you probably need to learn about custom allocators and how different kinds can help you manage your memory. This applies to pretty much any lower-level language, but Odin, Zig, C++ and a few others have explicit support for this in their standard libraries.
In general you probably need to learn about custom allocators and how different kinds can help you manage your memory. This applies to pretty much any lower-level language, but Odin, Zig, C++ and a few others have explicit support for this in their standard libraries.