decorator-ordering-grounded-in-extension-semantics

Status: IN

Decorator's composition-order sensitivity is structurally grounded in its extension semantics: because decorators extend parent behavior by chaining through super-calls (Border::Draw calls MonoGlyph::Draw before adding its own drawing) rather than replacing it, the order determines which extensions wrap which — the outermost decorator's extension executes last, making ordering a consequence of the extension-not-replacement design decision.

Justifications

Ordering sensitivity follows from the extension-via-chaining mechanism, not arbitrary implementation choice

Depends on (SL): decorator-ordering-matters, decorator-border-extends-parent-behavior

Depended on by

JSON