Re: Referance usage in async function

2019-11-30 Thread aliak via Digitalmars-d-learn
On Saturday, 30 November 2019 at 13:45:00 UTC, kerdemdemir wrote: I have simplified my problem which can be seen below. import std.stdio; import vibe.core.core; import vibe.core.concurrency; import vibe.data.json; void main() { int[] list; bool ListManipulator(ref int[] list) {

Referance usage in async function

2019-11-30 Thread kerdemdemir via Digitalmars-d-learn
I have simplified my problem which can be seen below. import std.stdio; import vibe.core.core; import vibe.core.concurrency; import vibe.data.json; void main() { int[] list; bool ListManipulator(ref int[] list) { list ~= 2; list ~= 4; return true; }