Directory | Tags | Index | LinkIt | Submit   | Help
    Thursday, 24 July 2014 - anonymous
Login/Register to vote and to have access to more features

You are here: Root > By Support > Papers

Language Constructs for Context-oriented Programming
Created by pcostanza on: Tue, 14 Feb 2006 21:02:37 GMT, Last modification: Tue, 14 Feb 2006 21:06:52 GMT

ContextL is an extension to the Common Lisp Object System that allows for Context-oriented Programming. It provides means to associate partial class and method definitions with layers and to activate and deactivate such layers in the control flow of a running program. When a layer is activated, the partial definitions become part of the program until this layer is deactivated. This has the effect that the behavior of a program can be modified according to the context of its use without the need to mention such context dependencies in the affected base program. We illustrate these ideas by providing different UI views on the same object while, at the same time, keeping the conceptual simplicity of object-oriented programming that objects know by themselves how to behave, in our case how to display themselves. These seemingly contradictory goals can be achieved by separating class definitions into distinct layers instead of factoring out the display code into different classes.

Document location: http://p-cos.net/documents/contextl-overview.pdf

Authors

Pascal Costanza | Robert Hirschfeld

Tags

Papers | Object-Oriented | Language Extensions | Common Lisp | CLOS

See Also

ContextL

0 Notes and 0 comments

0 Notes

You must be logged to add a note


0 Comments

You must be logged to add a comment