Nobody understands templates?
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Mar 4 11:30:21 PST 2014
On Tue, Mar 04, 2014 at 07:23:49PM +0000, Jesse Phillips wrote:
> On Sunday, 2 March 2014 at 11:47:39 UTC, Steve Teale wrote:
> >I just discovered by trial and error that I could use 'mixin' in
> >Templates (as opposed to Template Mixins), and when you know that
> >it seems likely that you can accomplish lots of stuff you couldn't
> >before.
>
> This was asked about recently.
>
> mixin template ...
>
> This is the correct way to declare a template to use in mixins,
> several of us are surprised that you can still mixin a template
> which wasn't declared in this manner. I've created a bug so an
> official statement can be made on it:
>
> https://d.puremagic.com/issues/show_bug.cgi?id=12298
I'm pretty sure that's a bug, since TDPL clearly distinguishes between
templates and mixin templates. But if this bug leads to interesting use
case, maybe it's a case of an unintentional feature? :-P
T
--
Knowledge is that area of ignorance that we arrange and classify. -- Ambrose Bierce
More information about the Digitalmars-d-learn
mailing list