HaxeFoundation/haxe — pull request #2144 by jasononeil (2013-09-04 07:24:32+00:00)
Title: Allow Dispatch to be subclassed

Basically the macros only allow arguments of known types, either simple
types (String, Int, Float, Bool) or objects - the only allowed objects
were instances of sys.db.Object subclasses or haxe.web.Dispatch instances.

This patch also allows arguments that are a sub class of haxe.web.Dispatch.

It also makes redirect() public so that the Redirect exception can be
caught by a subclass

**Note**: I didn't see unit tests for Dispatch, but the functionality is covered by unit tests in ufront-mvc, and they are all passing and test it fairly extensively. This was also mentioned on the mailing list recently and Nicolas suggested sending the pull request.