Skip to content

Comment on Undefined Behavior in C and C++parent

Comments

depend on where the variables are stored on the stack, which I don’t think anyone could reasonably demand even in 1976

You'd be surprised. A typical compiler of that era would be single-pass, and allocating variables on the stack in order in which they were declared was not uncommon. Don't forget, we're talking about a language that actually had a "register" keyword solely to tell the compiler to enregister the variable!

Well, now that you mention it, that’s true, I was there. :) But I just want to go back to 1992, not 1976.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.