[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [PATCH 5.005_63] Open-ended slices: (a..z)[23..]
Ronald J Kimball (lists.p5p):
>> The interesting question is what to do with this:
>> print (1,2,3)[1..-2]; # empty-list/error/reverse(1,2) ???
>It will be a compile error, same as it is now. :)
^^^^^^^
OK if you've got constants. The world gets a lot more interesting when
variables are involved, though.
--
`And when you've been *plonk*ed by Simon C., you've been *plonked*
by someone who knows when, and why, and how.' - Mike Andrews, asr
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]