News for hackers. Stuff that matters.
Re:Zig and Rust by kristoff_it on Monday March 27, 2023 @01:49PM (#35329890)
It's a function, when you call it, it allocates a frame on the stack.
Re:Zig and Rust by EVa5I7bHFq9mnYK on Tuesday March 28, 2023 @03:14AM (#35336998)
In our times malloc always allocated on heap, not on stack. But things are different now, I guess.
Re:Zig and Rust by einarr on Tuesday March 28, 2023 @05:33PM (#35348231)
True. But the author mentions malloc, it just sounds like he's using "stack" instead of "heap" by mistake.
Re:Zig and Rust by einarr on Tuesday March 28, 2023 @05:46PM (#35348391)