Idea #1 on integrating RC with GC
Adam D. Ruppe
destructionator at gmail.com
Wed Feb 5 11:15:40 PST 2014
On Wednesday, 5 February 2014 at 19:04:10 UTC, Namespace wrote:
> Would it not be possible to add an "int rc" to the internal
> Array struct? So that int[] arr = [1, 2, 3]; is ref counted per
> default?
Please no (it'd also have to be int* rc btw). This makes slices
fatter than they need to be.
We should be looking at reducing costs, not shuffling them around
or adding to them.
More information about the Digitalmars-d
mailing list