interop with c++ coroutines

WebFreak001 d.forum at webfreak.org
Tue Apr 14 13:27:41 UTC 2020


To my understanding the C++20 coroutines are very similar to what 
we have in D using Fibers.

How could I interop with a library exposing this kind of 
functionality in D? I haven't really used C++ coroutines but I 
would like to have some sort of compatibility with the standard 
C++ types for libraries.

See
https://lewissbaker.github.io/2017/09/25/coroutine-theory
https://lewissbaker.github.io/2017/11/17/understanding-operator-co-await
https://en.cppreference.com/w/cpp/language/coroutines



More information about the Digitalmars-d-learn mailing list