News for hackers. Stuff that matters.
Re:Announcing Rust 1.19 by jancsika on Thursday July 20, 2017 @11:24PM (#14817824)
I've never quite understood this one.

For example-- what happens if I create an array of foos and then malloc data of each element to some arbitrary size?

Re:Announcing Rust 1.19 by repsilat on Friday July 21, 2017 @12:59AM (#14818177)
You don't do that. Each one is usually allocated on its own, and you keep a pointer to each. Though you could store them contiguously if each contains a length member or they're delimited in some other way.