On Thu, Apr 12, 2012 at 08:04:44PM +0200, Timon Gehr wrote:
[...]
> The general idea is useful, but there are issues.
> 
> 'this' is the wrong keyword for the job. A class or struct instance is
> very different from a template instance and the proposed usage would
> clash with existing and useful ones. (assuming that it would work for
> symbol lookups in addition to declarations) 'template' or maybe
> 'scope' would be superior choices.

What about "this template"? Clear, self-documenting, and unambiguous.

        template X(T) {
                alias const(T) this template;
        }


T

-- 
One disk to rule them all, One disk to find them. One disk to bring them all 
and in the darkness grind them. In the Land of Redmond where the shadows lie. 
-- The Silicon Valley Tarot

Reply via email to