Re: error?
- Posted by Kat <kat at kogeijin.com> Oct 25, 2002
- 503 views
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