D-Programming-Language/dmd — pull request #681 by yebblies (2012-02-01 16:31:39+00:00)
Title: Issue 3927 - array.length++; is an error, but ++array.length compiles

Rewrite array.length to `(auto tmp = array.length, ++array.length, tmp)`

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