An Efficient Generators Implementation in Pizza

I. Lewis and V. Malhotra (Australia)


Pizza, Java, Languages, Generators.


This paper introduces a state-based implementation for generators that is both efficient and transparent within an existing object-oriented language: Pizza, a well known Java extension. The implementation follows the techniques used for Pizza itself [1, 2, 3], and the resultant translation is simple, coherent and powerful. The translation method is by no means Pizza specific and could be easily reproduced in many existing languages.

Important Links:

Go Back