Re: [Phix] Splicing Anomaly

new topic     » goto parent     » topic index » view thread      » older message » newer message
sequence s 
 
s = { 0, 5 , 5 , 0 }     -- Warning! 
s[2..1] = 99 
? s 
-- {0,5,5,0} 
 
-- ? length(99) 
--          ^ incompatible type for routine signature 
-- 1 // for oE 
 
? s[2..1] 
-- {} 

Same result in oE and Phix

Where does the `99` go?

I would expect a warning that the `99` has vanished into a black hole.

_tom

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

Search



Quick Links

User menu

Not signed in.

Misc Menu