Re: Strange machine-level exception

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

Bernie Ryan wrote:
> 
> 
> Looking at the source in be_runtime.c for find_from.
> 
> It seems that the code is testing for the value of the length for
> 
> the full sequence instead of the length of the sequence from the
> 
> starting point of the find to the end of the sequence.
> 
> Maybe I'am wrong ?

That's what I thought too. A further test confirms this beyond any remaining
doubt:
sequence x
 x={1,2,3,4,{5}}
 x=x[1..3]
?find_from({5},x,3)

and it prints 5 which is obvious nonsense as length(x) is now 3.

Regards,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu