Content deleted Content added
memory management section |
mNo edit summary |
||
Line 66:
=== Memory management ===
Memory is manually managed in Odin. The language has built-in support for custom allocators. Custom allocators can be passed to called procedures by assigning <syntaxhighlight inline=1>context.allocator</syntaxhighlight> with the desired allocator.
=== Explicit procedure overloading ===
Odin has [[Function_overloading|procedure overloading]], but unlike languages like C++, the overloads have to be specified explicitly:<ref>{{cite web |title=Odin programming language review |url=https://graphitemaster.github.io/odin_review/#procedure-groups
<syntaxhighlight lang="go">
bool_to_string :: proc(b: bool) -> string {...}
|