On Monday, 8 July 2013 at 12:09:55 UTC, Dicebot wrote:
P.S. you speak about (i == 0) but your snippet has (i > 0)
Thats simply because I forgot to change it.. I tried various things... it's not relevant...
the problem is back... when I remove the compare on i name is updated, when I don' t it isn't:
string name = "Value"~((i == 0) ? "" : to!string(i++)); } produces @property int Value(); @property int Value(int value); @property double Value(); @property double Value(double value); @property long Value(); @property long Value(long value); but string name = "Value"~(to!string(i++)); @property int Value0(); @property int Value0(int value); @property double Value1(); @property double Value1(double value); @property long Value2(); @property long Value2(long value); so the original statement was correct about i==0.