Idea #1 on integrating RC with GC

Namespace rswhite4 at googlemail.com
Wed Feb 5 11:04:09 PST 2014


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? If you want it to be immortal, call toGC(arr) or with 
UFCS arr.toGC() which set the rc to uint.max / 2?
That would keep the nice syntax. :)


More information about the Digitalmars-d mailing list