On Tuesday, 5 December 2017 at 19:27:37 UTC, Ali Çehreli wrote:
On 12/05/2017 11:07 AM, A Guy With a Question wrote:
> The following doesn't appear to be valid syntax. Array!Item!T

You can ommit the template argument list parenteses only for single symbols.

Starting with the full syntax:


Since Item!(T) uses a single symbol, T, you can remove the parenteses from that one:


The following compiles:

import std.container.array;

struct Item(T) {

void main() {
    alias T = int;
    auto a = Array!(Item!T)();


yup that was the issue.

Reply via email to