int[10] a = [0,1,2,3,4,5,6,7,8,9]; //a static array, on the stack
auto s = a[]; //a normal slice, backed by stack memory*
auto s1 = a[3 .. 5]; //ditto
I see. Thanks for the examples. What about strings? Do they depend on GC?

They are just slices / arrays.

Reply via email to