News for hackers. Stuff that matters.
Re:Why RAII rocks by vodik on Thursday April 23, 2015 @05:10PM (#9429844)
As far as I know, using `new` or not has nothing to really do if it goes onto the stack or not. That's simply a common implementation details.

What its really saying is if the lifetime is automatic or manual.

Maybe I'm confusing C with C++ or just outright confused, but to my understanding, nothing says that:

    int foo[] = <massive amount of data>;
actually has to live on the stack.
Re:Why RAII rocks by EpicEng on Friday April 24, 2015 @12:23AM (#9431421)
Well, in practice, it's both. Sure, stacks and heaps are an implementation detail, but they're pervasive. You simply can't write int x[10000][10000]; and expect it to not cause a stack overflow in any real world implementation. It's an implementation detail you absolutely need to be aware of.
Re:Why RAII rocks by bmm6o on Wednesday April 29, 2015 @04:03PM (#9461312)
> nothing says that [...] actually has to live on the stack.

This might be possible in theory but I've never seen it in practice.