If Statement with Declaration
Nick Treleaven via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 24 06:14:53 PDT 2017
On Monday, 24 July 2017 at 13:12:17 UTC, Nick Treleaven wrote:
> On Friday, 21 July 2017 at 21:50:02 UTC, Johan Engelen wrote:
>> static if (is(E V == enum)) { // this inserts "V"
>> V v;
>> }
>> ```
>
> Yes, but this is a bit different as the goal is to avoid
> repeating V
Sigh. Repeating E. (unintentional ironic mistake)
More information about the Digitalmars-d
mailing list