@article {IOPORT.05907102, author = {Dezani-Ciancaglini, Mariangiola and Giannini, Paola and Zucca, Elena}, title = {Extending the lambda-calculus with unbind and rebind.}, year = {2011}, journal = {RAIRO. Theoretical Informatics and Applications}, volume = {45}, number = {1}, issn = {0988-3754}, pages = {143-162}, publisher = {EDP Sciences, Les Ulis; Cambridge University Press, Cambridge}, doi = {10.1051/ita/2011008}, abstract = {Summary: We extend the simply typed $\lambda $-calculus with unbind and rebind primitive constructs. That is, a value can be a fragment of open code, which in order to be used should be explicitly rebound. This mechanism nicely coexists with standard static binding. The motivation is to provide an unifying foundation for mechanisms of dynamic scoping, where the meaning of a name is determined at runtime, rebinding, such as dynamic updating of resources and exchange of mobile code, and delegation, where an alternative action is taken if a binding is missing. Depending on the application scenario, we consider two extensions which differ in the way type safety is guaranteed. The former relies on a combination of static and dynamic type checking. That is, rebind raises a dynamic error if for some variable there is no replacing term or it has the wrong type.}, identifier = {05907102}, }