how can I get a reference of array?

zhmt via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 4 22:52:04 PST 2015


void test(ref int[] arr) {
	arr ~= 4;
}

It is something like ref variables. But ref just be used in
function declaration.


More information about the Digitalmars-d-learn mailing list