Does D have anything like the generators of Python and some other languages?
    A D dev via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Aug 29 14:50:19 PDT 2016
    
    
  
On Monday, 29 August 2016 at 21:28:15 UTC, Cauterite wrote:
> Ranges serve some of the purposes that generators are often 
> used for: http://dlang.org/phobos/std_range.html
>
> But you can of course make true coroutine-based generators with 
> fibres: http://dlang.org/phobos/core_thread.html#.Fiber
Thanks. Both sound interesting. Will check.
    
    
More information about the Digitalmars-d-learn
mailing list