array reinitialization

seany seany at uni-bonn.de
Tue Nov 19 06:44:33 PST 2013


Say I defined an array as int[] a = [1,2,3,4];
Now if I do a = function(a);

will that make a to equal [1,2,3,4,5]

the function is defined as:

int[] function(int[] b)
{ return b ~ 5;}


More information about the Digitalmars-d-learn mailing list