On Fri Dec 19 09:20:41 2008, cspencer wrote: > > The following code: > > class Array is also { > method splice(@array: $offset = 0, Int $size? = 0, *...@values) { > say "Splicing array: offset = $offset, size = $size"; > } > }; > > (1..10).splice(1, 1); > > does not parse the method declaration correctly.
Just tested this in latest Rakudo and, after correcting the invocation (1..10 constructs a range, not an array, so do [1..10].splice(1,1)) we get: Splicing array: offset = 1, size = 1 So, resolving ticket. Thanks! Jonathan