The problem with the slice is that the indexing of the used array is not the same as the original one. Your "slice") look like at a kind of shortcut to the array plus an indexing table.
Not really easy to debug... You can make a pseudo class that add a function to array My array. Slice(1,3) as sliceclass Lol I prefer My function (my array 1, 6 Le 10 oct. 2012 23:47, "Emil Lenngren" <emil.lenng...@gmail.com> a écrit : > Still, it's not a real "slice" in the sense that it points to the original > array, but a deep copy that may take some time to create. > In for example the Go language, you can create a slice that "points" to the > original array with different offsets and lengths. > > 2012/10/10 RICHARD WALKER <richard.j.wal...@ntlworld.com> > > > That's the one Sebastian, > > > > my_array.Copy(6,3) > > > > should do it. Thanks. > > > > R > > > > > > > ------------------------------------------------------------------------------ > > Don't let slow site performance ruin your business. Deploy New Relic APM > > Deploy New Relic app performance management and know exactly > > what is happening inside your Ruby, Python, PHP, Java, and .NET app > > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > > http://p.sf.net/sfu/newrelic-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user