[Issue 1182] Mixins scope

Aarti_pl aarti at interia.pl
Tue Apr 24 03:40:35 PDT 2007


First: How does it work? There are two policy symbols in template 
(overloaded functions). Why 'getter property' is choosen? How to choose 
setter?

Second: That's solution far from good. Imagine you have e.g. 10 symbols 
inserted by mixin (I work with such a case.). What's more mixins are 
inserted into many inherited classes. You need to alias all symbols 
inside mixin template in every inherited class.

Third: Would be also great to implement anchored types (#1120). It would 
  depreciate this use-case for mixins.

I request to leave that enhancement open. Simply enhancing rule of 
inserting anonymous mixin into scope for function names *AND* their 
arguments would solve problem cleanly.


More information about the Digitalmars-d-bugs mailing list