A simple question
Jacob Carlborg
doob at me.com
Fri Nov 16 13:29:27 PST 2012
On 2012-11-16 11:16, Andrej Mitrovic wrote:
> Have you seen this comment:
>
> On 11/16/12, jerro <a at a.com> wrote:
>> doing that certainly would introduce some ambiguities. For
>> example, consider this line:
>>
>> alias Foo Bar;
>>
>> Should Bar be a template or an instance of a template here?
And my reply to that comment:
Any place where a template and an instantiation is allowed it will
default to a template. The user would then need to explicitly add !() to
indicate an instantiation. In all other places, it will be an instantiation.
I think in most cases using just a template is not allowed.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list