5 ms·
Wow, this displays a severe misunderstanding of how pointers work in general. It's not like the syntax for it in Go is any different, this code would look very
by kin3tic 14y ago
Wow, this displays a severe misunderstanding of how pointers work in general. It's not like the syntax for it in Go is any different, this code would look very similar in anything that has real pointers (C, for example), certainly in regards to the notation and syntax for pointers and references and such.
'I understand what a pointer is'. Questionable.
- drivebyacct2 14y agoFor reference, I posted this in a subthread above: the same example in C demonstrating using a pointer and passing it or declaring an object and passing it's address: http://codepad.org/TeUZi1Wp http://codepad.org/TeUZi1Wp
- latch 14y agoSame example in C# showing pass by reference does exist http://rextester.com/IYZE41714 http://rextester.com/IYZE41714
- deleted 14y ago[deleted]