Why doesn't symbol wheelbarrowing work with function templates?

TommiT tommitissari at hotmail.com
Thu Jun 13 03:28:11 PDT 2013


On Thursday, 13 June 2013 at 10:19:17 UTC, Peter Alexander wrote:
> On Thursday, 13 June 2013 at 10:16:40 UTC, Peter Alexander 
> wrote:
>> On Thursday, 13 June 2013 at 09:53:54 UTC, TommiT wrote:
>>> 1. alias main.bar conflicts with alias main.bar
>>
>> This is why: they conflict.
>>
>> If it worked, what would you expect bar!string() return?
>
> Oops, that's a bad example: bar has a parameter.
>
> Which bar would you expect this to alias:
>
> alias bar!string barstring;

I'd expect that to be some kind of compile time error about the 
ambiguity of bar!string, given that both 'a' and 'b' are imported.


More information about the Digitalmars-d mailing list