Question about template mixins as nested functions.
Gerald Stocker
gobstocker at gmail.com
Thu Feb 15 23:13:05 PST 2007
Derek Parnell wrote:
> On Fri, 16 Feb 2007 00:31:07 -0500, Gerald Stocker wrote:
>
>> Hello,
>>
>> I have a question about using a template mixin to add a nested function
>> to a class method...
>
> I have trouble with mixin templates too. I believe the effect you see is
> because the mixin introduces its own scope and you have to qualify
> reference that are outside the mixin.
>
> However, the new mixin(Statement) might be useful to you ...
>
It is, thanks! It turns out several of the things I was trying (and
sometimes failing) to do with template mixins make more sense as
statment mixins.
--Gerald
More information about the Digitalmars-d-learn
mailing list