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?
[ Parent
| on HN ]
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".