News for hackers. Stuff that matters.
Re:How an Engineering Company Chose to Migrate to D by codemac on Wednesday June 20, 2018 @11:57AM (#17356551)
Does Go take a copy or a reference?
Re:How an Engineering Company Chose to Migrate to D by rhencke on Wednesday June 20, 2018 @12:18PM (#17356765)
The following example will provide your answer:

https://play.golang.org/p/NeGuDahW2yP

Re:How an Engineering Company Chose to Migrate to D by mikepurvis on Wednesday June 20, 2018 @12:28PM (#17356859)
The captured context persists between calls to the function, as the sibling example demonstrates, or this one:

https://play.golang.org/p/drfx_3g84aE