Assign Range: layout = X, AlignRight;
Виталий Фадеев
vital.fadeev at gmail.com
Tue May 26 13:36:34 UTC 2020
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!
More information about the Digitalmars-d-learn
mailing list