News for hackers. Stuff that matters.
Re:C or C++ for my game engine? by loup-vaillant on Monday January 18, 2016 @09:09AM (#10924431)
> local variable allocations have always historically been on the stack

And they still are, thank goodness. My point was that as soon as you call a constructor, all bets are off: for instance, merely declaring an std::string allocates on the heap, local variable or no. But it seems you already knew that.

I think it is important to distinguish scoped discipline from stack allocation. The former is a way to program. The later is an implementation detail (modulo performance). Your wording was a tiny bit sloppy, so I jumped at it.

There are no comments on this comment yet.