I want this:

    layout = X, AlignRight;



Use case:
class Widget
{
    struct Layout
    {
        ILayout[] _layouts;

        void opAssign( args... )
        {
            foreach( a; args )
            {
                _layouts ~= a;
            }
        }


        alias _layouts this;
    }
}


in front-end code:

    with( new Widget() )
    {
        layout = X, AlignRight;
    }


I think the solution:
   void opAssign( args... ) { ... }



I want this feature in D!

Reply via email to