Voldemort Type Construction Error

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 15 12:04:47 PST 2016


On Friday, 15 January 2016 at 16:51:24 UTC, Anon wrote:
> On Friday, 15 January 2016 at 14:04:50 UTC, Nordlöw wrote:
>> What have I missed?
>
> In line 126, `static struct Result()` is a template. Either 
> drop the parens there, or change the call on line 187 to 
> `Result!()(haystack, needles)`.

Ahh, annoying mistake.

Why is this allowed?

/Per


More information about the Digitalmars-d-learn mailing list