co_yield expression expression allows it to write a generator function. The generator function returns a new value each time. A generator function is a kind of data stream from which you can pick values. The data stream can be infinite. Consequentially, we are in the center of lazy evaluation.

1503

Sign in. chromium / external / llvm.org / clang / dba2c18e8faedac4ddd83e4e133a2e3e3db8a977 / . / test / Parser / cxx1z-coroutines.cpp

A coroutine is a generalization of a function that in addition to usual control flow operations such as call and return, can suspend execution of itself and yield control back to the caller with … It also has a link to Clang testcase for coroutines semantic analysis and diagnostics, as well as the actual diagnostic output of Clang for that testcase. In the attached patch I started to work on parsing and semantic analysis. For now it can parse some basic uses of co_await, co_yield and co_return and diagnose some erroneous cases. This manifests as a difference in -std=c++11 behavior between Clang 3.5.1 (shipped January 2015) and Clang 3.8 (shipped March 2016) — not as a difference between -std=c++11 and -std=c++17 on any compiler! So in this sense, to “resolve foo as a DR” connotes “to apply the same fix uniformly across all language modes.” EBO, EBCO Coroutines Yehezkel Bernat yehezkelshb@gmail.com Core C++ Meetup, Sep. 2018 layout: true