On Thursday, 9 November 2023 at 10:14:46 UTC, Bienlein wrote:
On Thursday, 9 November 2023 at 09:40:47 UTC, Bienlein wrote:
On Wednesday, 8 November 2023 at 16:47:02 UTC, Paul Backus
wrote:
On Wednesday, 8 November 2023 at 16:30:49 UTC, Bienlein wrote:
...
The actual problem here is that you can't take the address of
a template without instantiating it first. To make your
example work, replace `&addToBiz` with `&addToBiz!int`, like
this:
spawn(&addToBiz!int, biz);
All right. It seems I cannot pass on an object. So I store the
object in a global and access it from the callback function
passed to spawn.