rbowman <bowm…@montana.com> writes:
[...]
> It's not only Python. Whatever C spec that allowed inline variable
> declarations was great. I'd gotten used to it in C++. I'm sure there were
> other changes that I don't use. Some I actively dislike. afaik C still
> doesn't have lambdas.
[...]
I *think* you're referring to the ability to mix declarations and
statements within a block. This was added in the 1999 edition of
the C standard. C++ had this ability nearly from the beginning (I
don't know the exact history).
C++ has another feature of inline variables, using the "inline"
keyword, added in C++17.
--
Keith Thompson (The_Other_Keith) Keit…@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */