News for hackers. Stuff that matters.
Re:Dynamic Scoping in C++ by _ZeD_ on Monday September 21, 2020 @01:31PM (#24546129)
just to be sure, can't this problem be handled in OOP with a "trivial" class (or object) field?
Re:Dynamic Scoping in C++ by masklinn on Monday September 21, 2020 @01:51PM (#24546345)
Technically it's possible but AFAIK people don't normally extend e.g. every business object with a logger field or an output stream? In fact that's usually a very bad pattern, something akin to a "god object".