Bottom line re GC in D

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 8 04:33:57 PDT 2014


>> 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.


More information about the Digitalmars-d mailing list