One requirement for a partial alternative is, that the generated coding can access private member of the actual class as they are in most GUI framework private members of the class.

class Example
{
private Button b;
private ComboBox cb;
}

The GUI framework takes care about calling their constructors and also about persisting their design time values (values you read and write in the GUI builder).

Is there any possibility to access private members by using Template Mixins? As far as I can see only String Mixins are able to access private members of the scope they are inserted to.

Kind regards
André


On Monday, 10 November 2014 at 14:38:58 UTC, Jacob Carlborg wrote:
On 2014-11-10 11:21, Regan Heath wrote:

Basically it's just a good idea(TM). Unfortunately as many have said, it's not something D2.0 is likely to see. String mixins aren't the nicest thing to use, but at least they can achieve the same/similar thing.

Template mixins can be used instead. Looks a lot better.

Reply via email to