On alias a = b
Steven Schveighoffer
schveiguy at yahoo.com
Fri Mar 18 13:41:56 PDT 2011
On Fri, 18 Mar 2011 16:37:49 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> On 3/18/11 3:28 PM, so wrote:
>> alias a(T) = b(T, known_type);
>>
>> Would it be an overkill?
>
> It's part of the evil plan.
(I think there is a typo above, shouldn't it be alias a(T) = b!(T,
known_type) ? )
You mean you would no longer need the surrounding template declaration?
i.e. the above (corrected) statement would be short for:
template a(T)
{
alias a = b!(T, known_type);
}
That would be certainly very un-evil ;)
-Steve
More information about the Digitalmars-d
mailing list