Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Tue Nov 22 18:13:00 UTC 2022


On 11/21/2022 4:59 PM, Adam D Ruppe wrote:
> But the variable shadowing due to the implicit `with(this)` can be quite a 
> surprise, including some spooky action at a distance (adding something to the 
> base class can erase a local variable from existence in an entirely different 
> project!)

It's the old tradeoff problem. You can make the bathroom bigger or the closet 
bigger, but not both.


More information about the Digitalmars-d mailing list