Iterators? (Was: Squeak practical use? ...)
Richard A. O'Keefe
ok at atlas.otago.ac.nz
Thu Jan 31 22:29:51 UTC 2002
"Andrew C. Greenberg" <werdna at mucow.com> wrote:
Not only that -- how, exactly, is this continuation example an example
of a tail recursion? Certainly, its been decades since my A-exams, but
as I recall, a tail recursion is generally defined as a recursive call
in a tail context.
No. TRO is a misnomer, it refers to tail CALL optimisation.
The technique turns _any_ tail call into a jump, whether it is recursive
or not. It's "procedure call = assignment + GOTO".
More information about the Squeak-dev
mailing list
|