[Issue 14073] Allow token strings to use other types of brackets as delimiters

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jan 28 14:52:49 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14073

--- Comment #3 from monkeyworks12 at hotmail.com ---
(In reply to monkeyworks12 from comment #2)
> template sa(T, T[] array)
> if (isRValue!array)
> {
>     enum sa = array;
> }
> 
> auto staticArr = sa![1, 2];

`enum sa = array` should be `enum T[array.length] sa = array`.

--


More information about the Digitalmars-d-bugs mailing list