Composes policies left to right, outermost first, so the argument order
reads the way the stack is drawn: the first policy sees the call before the
second, and the last one is closest to the work.
stack(a, b)(action) is a(b(action)).
An order that cannot work is a mistake this package can see, so it throws
here rather than describing the right order in its documentation and hoping.
Only labelled policies are checked; see tag and
Stack.unchecked.
Throws
If a labelled policy sits outside one that must contain it.
Composes policies left to right, outermost first, so the argument order reads the way the stack is drawn: the first policy sees the call before the second, and the last one is closest to the work.
stack(a, b)(action)isa(b(action)).An order that cannot work is a mistake this package can see, so it throws here rather than describing the right order in its documentation and hoping. Only labelled policies are checked; see tag and Stack.unchecked.