Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1
Adam D. Ruppe
destructionator at gmail.com
Sat Nov 19 03:09:26 UTC 2022
On Saturday, 19 November 2022 at 02:57:27 UTC, Walter Bright
wrote:
> with (MySuperLongType)
> MySuperLongType flag = ValueA | ValueB | ValueC | ValueD |
> ValueE | ValueF | ValueG;
`flag` is now inaccessible since `with` creates a new scope.
Of course, you may be able to just extend the scope to cover the
usage point as well.
More information about the Digitalmars-d
mailing list