Aliasing of template results
Alex Rønne Petersen
xtzgzorex at gmail.com
Sun Jan 22 10:36:57 PST 2012
On 22-01-2012 19:33, Andrej Mitrovic wrote:
> A while ago there was a suggestion by Andrei to incorporate this sort of syntax:
>
> template ElementType(T : T[])
> {
> alias ElementType = T;
> }
>
> struct Foo(T)
> {
> alias Type = T;
> }
>
> I think people agreed it was a nice syntax, but I don't know if anyone
> tried to implement it.
It still feels wrong. Why am I overwriting an existing symbol?
--
- Alex
More information about the Digitalmars-d
mailing list