Re:How an Engineering Company Chose to Migrate to D
by oconnor663 on Wednesday June 20, 2018 @11:44AM
(#17356434)
Go also certainly supports this. Here's a playground example: https://play.golang.org/p/_BLguocGBRn
[ Parent
| on HN ]
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:
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: