The paper investigates the use of preprocessing in adding higher order functionalities to Java. that is in passing methods to other methods. The approach is based on a mechanism which offers a restricted. disciplined. form of abstraction that is suitable to the integration of high order and object oriented programming. We show how this integration can be exploited in programming through the development of an example. Then, we discuss how the expressive power of the language is improved. A new syntax is introduced for formal and actual parameters, hence the paper defines a translation that, at preprocessing time. maps programs of the extended language into programs of ordinary Java.
Methods as Parameters: A Preprocessing Approach in Java
BELLIA, MARCO;
2007-01-01
Abstract
The paper investigates the use of preprocessing in adding higher order functionalities to Java. that is in passing methods to other methods. The approach is based on a mechanism which offers a restricted. disciplined. form of abstraction that is suitable to the integration of high order and object oriented programming. We show how this integration can be exploited in programming through the development of an example. Then, we discuss how the expressive power of the language is improved. A new syntax is introduced for formal and actual parameters, hence the paper defines a translation that, at preprocessing time. maps programs of the extended language into programs of ordinary Java.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.