Cool. Thanks for figuring it out and posting your answer. On Tuesday, 15 November 2016 07:28:16 UTC+11, Evan Digby wrote: > > Confirmed bug on my part. > > When using the "..." suffix to pass a slice into a func with variadic args > it passes through the the original slice, rather than constructing a new > one. An obvious optimization, but caused my function to act differently in > my tests vs. a real use case. > > The tests pass in "[][]int64..." whereas the code using the function > passes several individual slices. > > The function clobbers the individual slices inside. > > I've now added an explicit test to validate behaviour is the same passing > individual args vs. breaking out a slice. > > > On Saturday, 12 November 2016 12:57:07 UTC-8, Evan Digby wrote: >> >> I think I've eyeballed a bug in my code that *might* cause this but I >> won't be at a computer for a day or two to verify. I'll keep here posted! > >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.