recursive definition error
Frustrated via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 4 08:38:50 PDT 2014
On Friday, 4 July 2014 at 15:10:14 UTC, bearophile wrote:
> Frustrated:
>
>> After upgrading to latest dmd, I get the follow error on the
>> code
>>
>> template Array(T) { alias Array = std.container.Array!T; }
>
> Try to use a different name inside the template, like "Vector".
>
> Bye,
> bearophile
Huh?
The template is simply wrapping std.container.Array so I can
later on use change it to a different array without breaking code
that uses it. As I said, it worked fine before without this
recursion problem.
Since there is no recursion going on there, it shouldn't be a
problem. This seems like a bug/regression.
An indirection does not help.
More information about the Digitalmars-d-learn
mailing list