fix Issue 6652 - 2. Deprecate modifying non ref variable.

http://d.puremagic.com/issues/show_bug.cgi?id=6652