In article <3C21D20E.2FFC@ed.ac.uk>,
Stephen Isard <S.IsardDeleteThis@ed.ac.uk> wrote:
>Pete Goodeve wrote:
>
>> str<>s->str;
>
>When str starts off as the empty string, this is effectively the
>same as
>s->str;
Umm. I see that '><' seems to be more appropriate than '<>' in this
case. Is this more reasonable pop-style?:
define echo();
lvars temp;
''->str;
repeat forever
cucharin()->temp;
if temp = termin then return; endif;
str><consstring(temp, 1)->str;
endrepeat;
enddefine;
Still can't see any way to get rid of 'temp' because I have to check
for termin, but I guess that's no biggie.
-- Pete --
|