Then K&R came, and took our nice toys away.
Fortunately, the GNU Pascal compiler needed nested subroutines, so they exposed the feature in their C compiler, as well.
On C++ we can fake them with lambdas.