Comment on Dynamic Scoping in C++parentComments−_ZeD_5yjust to be sure, can't this problem be handled in OOP with a "trivial" class (or object) field?−masklinn5yTechnically 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".
Comments
just to be sure, can't this problem be handled in OOP with a "trivial" class (or object) field?
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".