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

Adam D Ruppe destructionator at gmail.com
Tue Nov 22 00:59:58 UTC 2022


On Tuesday, 22 November 2022 at 00:46:40 UTC, Walter Bright wrote:
> I did those classes because at the time it seemed that our 
> target was Java developers. This has since proved to be 
> incorrect, and I wouldn't do them again. But they don't seem to 
> be any harm.

Oh they're really nice and I use them a lot.

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!)


More information about the Digitalmars-d mailing list