That snippet seems way more complex than necessary. It's reimplementing what a closure/lambda already does, which is to copy its context along with the function pointer. Why would it be necessary to do that by hand when Nim already has closures?
- Nim 2: What’s special about Task? snej
- Nim 2: What’s special about Task? planetis
- Nim 2: What’s special about Task? auxym
- Nim 2: What’s special about Task? Zoom
- Nim 2: What’s special about Task? snej
