Please change alias ReplaceArrayWithPointer = Flag!"replaceArrayWithPointer"
jmh530 via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 21 12:42:56 PST 2016
On Thursday, 21 January 2016 at 19:31:19 UTC, Andrei Alexandrescu
wrote:
> The correct idiom involving Flag is:
>
> * Use the name Flag!"frob" for the type of the flag
>
> * Use Yes.frob and No.frob for the flag values
>
> * Do NOT alias Flag!"frob" to a new name. This is unnecessary,
> unhelpful, and wasteful.
>
> Can somebody please change the respective code in
> std.experimental.ndslice?
>
>
> Thanks,
>
> Andrei
Perhaps
https://dlang.org/phobos/std_typecons.html#.Flag
should be adjusted. It recommends aliasing.
More information about the Digitalmars-d
mailing list