alliedmodders/sourcemod — pull request #77 by dvander (2014-07-06 08:26:03+00:00)
Title: Add setters.

There's still some bugs to iron out but as a PoC this looks like it'll work. hier13() now creates a new "accessor" lvalue type for all accessors, rather than immediately invoking the getter and returning an rvalue. Most consumers will immediately turn it into an rvalue anyway. There are four cases where this is not true:

*Assignments, which call store(). That now invokes the setter.
*Calls, which pass lvalues by-reference. Accessors don't work like that, so they get turned into rvalues here.
*Inc/dec operators, which are not compatible with setters yet.
*The `delete` keyword which zaps lvalues. That's not working yet either.