JarrettBillingsley / Croc

Croc is an extensible extension language in the vein of Lua, which also wishes it were a standalone language. Also it's fun.
http://www.croc-lang.org
79 stars 12 forks source link

Change behavior of "whole-slices"? #110

Closed JarrettBillingsley closed 10 years ago

JarrettBillingsley commented 10 years ago

Currently if you slice an array and the slice indices mean "a slice of the whole object", the object is returned, rather than a copy. This is the only case of slicing where a new object is not returned.

I think slicing should ALWAYS return a new object.