RE: Standard Euphoria Library Project

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 7 Feb 2001, at 16:42, Al Getz wrote:

> Hi Kat,
>   I ran your program:
> 
> > include get.e
> > integer key
> > sequence test
> >   test = "Kat"
> > 
> > 
> > function remove( integer i, sequence s )
> >   -- remove ith element from s
> >      return s[1..i-1] & s[i+1..length(s)]
> > end function
> > 
> > for i = 1 to length( test ) do
> >   puts( 1, remove( i, test ) & "\n" )
> > end for
> > ------------------------------------- eof
> > 
> > key = wait_key()
> > 
> > test = ""
> > puts(1,"\n"&sprintf("%d",length(test))&"\n")
> > 
> > puts(1," ^ printed length of test\n")
> > key = wait_key()
> > 
> 
> and got the following output:
> 
>   at
>   Kt
>   Ka
> 
>   0
>    ^ printed length of test
> 
> So it seems the program runs just fine.  Whats wrong when you run it?

Like i said, it runs fine, but it has crashed in other code when i did 
length(emptysequence) .

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu