News for hackers. Stuff that matters.
Re:Reasons Python Sucks by aurelwu on Tuesday December 18, 2018 @11:21AM (#18707745)
static void Change(int[] myArray) { myArray = new int[5] {3, 1, 2}; }

this will not change the array which was passed in and is a purely local change in C#.

static void Change(ref int[] myArray) on the other side would change the array which was passed in.

There are no comments on this comment yet.