Pete Goodeve wrote:
> >define echo();
> > until dup(cucharin()) = termin then enduntil;
> > .erase; ;;; don't include termin in the string
> > consstring(stacklength())->str;
> >enddefine;
> >
>
> Umm. That won't be very good if something is already on the stack
> when echo() is called, will it?
You're right, of course. I wasn't clear what the point of this exercise
was. You could call stacklength() on entry to the function and then
take just the new items off the stack at the end. It would save you
making repeated calls to consstring.
Stephen Isard
|