Re: What exactly is the use-case for Template This Parameters?

2013-02-23 Thread Lee Braiden
On Mon, 18 Feb 2013 23:14:54 +0100, Andrej Mitrovic wrote: http://dlang.org/template.html#TemplateThisParameter That's hardly a descriptive example, so in what context is the feature useful? Some code snippets would be welcome so we can update the page with a nicer and more useful example.

Re: What exactly is the use-case for Template This Parameters?

2013-02-18 Thread Steven Schveighoffer
On Mon, 18 Feb 2013 17:14:54 -0500, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: http://dlang.org/template.html#TemplateThisParameter That's hardly a descriptive example, so in what context is the feature useful? Some code snippets would be welcome so we can update the page with a nicer

Re: What exactly is the use-case for Template This Parameters?

2013-02-18 Thread Andrej Mitrovic
On 2/19/13, Steven Schveighoffer schvei...@yahoo.com wrote: // don't need to redefine addAll Ah, that sheds a big light on this feature actually, thanks.