On-Demand Layer Activation for Type-Safe Deactivation

Tetsuo Kamina, Tomoyuki Aotani, Atsushi Igarashi · 2014

Dynamic layer deactivation in context-oriented programming (COP) allows a layer to be dynamically disabled in the running application in a disciplined way. Deactivating a layer may lead to an error if there is another layer which has been activated but depends on the deactivated layer in the sense that the latter calls a method that exists only in the former. A type system or static analysis might be able to check the absence of such depending layers at each deactivation point but it would not be very easy, especially in the open-world setting.

Read the paper · More papers on PaperTik