On Sunday, 9 March 2014 at 17:30:32 UTC, Andrei Alexandrescu wrote:
v.type = JSON_TYPE.TRUE;

and must be replaced with:

v = true;


Andrei

I see why you'd want to make this kind of change. It was probably a mistake to let you change the tag like that, what could be done to fix this is this.

deprecated("Don't assign to type!") @property void type(JSON_TYPE new_type)
{
    type_tag = new_type;
}

Then the code would probably work like before and people using x.type = ... in production would start seeing a deprecation warning instead, which we could make into an error at a later date.

Reply via email to