Draft:Odin (programming language): Difference between revisions

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. <ref>{{Cite web |last=Zhiyanov |first=Anton |date=2023-07-31 |title=Trying Odin (with a playground) |url=https://antonz.org/trying-odin/ |access-date=2023-11-27 |website=antonz.org |language=en}}</ref>
 
=== 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 | title=Odin programming language review }}</ref>, but unlike C++ the overloads have to be specified explicitly.
<syntaxhighlight lang="go">
bool_to_string :: proc(b: bool) -> string {...}