Re: error?

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

On 25 Oct 2002, at 23:32, jbrown105 at speedymail.org wrote:

> 
> On  0, Kat <kat at kogeijin.com> wrote:
> > 
> > Ok, if 
> > decimalcount = 1
> > (the debug screen says it is 1)
> > then shouldn't this line crash?:
> > 
> >    resultnum = resultnum[1..decimalcount-1] & "." & 
> > resultnum[decimalcount..length(resultnum)]
> > 
> > since it is the same as:
> > resultnum[1..0] 
> > ?
> > 
> > Kat
> > 
> 
> No.
> 
> resultnum[1..0] is the empty sequence {}

I can't help but consider that non-standard to Eu's way. It's one atom long, it 
should be one atom returned. Or since Rob doesn't want to return reversed 
sequences if we do 

s = s[length(s)..1]

then s[1..0] should crash as a reversed sequence of as a "upper index is 
less than 1" error. Reliable crashing is as important as reliable non-crashing, 
isn't it?

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu