An efficient implementation of multiple return values in Scheme
Authors:
- J. Michael AshleyJAJ. Michael Ashley
- R. Kent DybvigRDR. Kent Dybvig
Open Access
- 1 July 1994
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Lisp Pointers
- Vol. VII (3) , 140-149
Abstract
This paper describes an implementation of the new Scheme multiple values interface. The implementation handles multiple values efficiently, with no run-time overhead for normal calls and returns. Error checks are performed where necessary to insure that the expected number of values is returned in all situations. The implementation fits cleanly with our direct-style compiler and stack-based representation of control, but is equally well suited to continuation-passing style compilers and to heap-based run-time architectures.Keywords
This publication has 6 references indexed in Scilit:
- The scheme of thingsACM SIGPLAN Lisp Pointers, 1992
- Back to direct style II1992
- Back to direct style IIACM SIGPLAN Lisp Pointers, 1992
- Revised 4 report on the algorithmic language schemeACM SIGPLAN Lisp Pointers, 1991
- A new approach to procedures with variable arityHigher-Order and Symbolic Computation, 1990
- Representing control in the presence of first-class continuations1990