News for hackers. Stuff that matters.
Re:Dynamic Scoping in C++ by zwieback on Monday September 21, 2020 @01:39PM (#24546215)
Ok, that makes perfect sense. To me dynamic scoping was very specifically a language mechanism. What you're describing is more of a framework mechanism and something that would be easier to make easy to understand.
Re:Dynamic Scoping in C++ by munificent on Monday September 21, 2020 @03:41PM (#24547578)
Right, UI frameworks like Angular do dependency injection at the framework level because the underlying language doesn't have direct support for dynamic scope.

Sort of like how you can do object-oriented programming in C by making a struct of function pointers to create your own v-tables.