[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Dec 21 02:06:00 2001 
Subject:Re: Have I hit a bug already? 
From:Pete Goodeve 
Volume-ID:1011221.03 

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 --