Iterators and Ranges: Comparing C++ to D to Rust

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Jun 15 18:00:42 UTC 2021


On Tuesday, 15 June 2021 at 14:52:53 UTC, sighoya wrote:
> Reminds me a bit on CPS: https://github.com/zevv/cpsdoc

Yes, continuation passing is an implementation strategy for high 
level languages.

C++ coroutines may be a bit different from what I presented 
though, the memory for saving state is reused like a stack frame. 
So if you have a variable "x" that isn't used after a certain 
point, then it can be reused for a variable "y"... Makes sense.




More information about the Digitalmars-d mailing list