Theano/Theano — pull request #2303 by abergeron (2014-11-26 17:31:27+00:00)
Title: Fix scan_args for the 'as_while' case properly.

Somebody else changed the code to add support for as_while, but this was done in a way that forces all users to think about this flags and is error prone.

Do it the simpler way by handling the distinction in scan_args itself.