A property with two parameters will be the UFCS installer. Suppose we had:
struct Whatever {
void setProperty(int);
}
And you wanted to add the setter property instead of calling setProperty, but you cannot change the structure for any reason. You can add an external function as follows:
@property int my_prop(ref Whatever _this, int prop_value) {
_this.setProperty(prop_value);
return prop_value;
}
:
Whatever w;
w.my_prop = 10;
, this, - .