# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #122423] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=122423 >
<Ven> m: say (1.11)[*/2] <camelia> rakudo-moar 319a78: OUTPUT«Index out of range. Is: 0.5, should be in 0..0 [...] <Ven> "should be 0..0" ? <Timbus> not much wiggle room there <masak> yes, that error shouldn't happen. <masak> since if it didn't, the 0.5 would be successfully rounded down to 0. * masak submits rakudobug <Ven> masak: you don't think that should be an error ? <masak> I think it shouldn't be an error. <masak> fractional indices don't exist, 0.5 gets rounded down to 0, which is a legal index. <masak> more philosophically, you're doing */2 because you want the middle index, which should work for a 1-element thing. <Timbus> ya its common to.. ^ that <Ven> meh. <masak> this is a case of "validation should happen *after* dwimming the parameter".