> > If you only allow yeilding from the outermost level of scope in a routine, > you can do evil things with Duff's Device. Which is what Python does. (But > it's sufficient for most purposes) > > Dan > Duff's device being evil enough in and out of itself I'm not sure I see what this has to do with yielding, it also only applies to c and c++... I think you mean break is a kind of yield but this is not the same. Can you explain. Benoit
- Generators -- Icon, Python, YAML and YATL Clark C . Evans
- Re: Generators -- Icon, Python, YAML and YATL Sam Tregar
- Re: Generators -- Icon, Python, YAML and YATL Clark C . Evans
- Re: Generators -- Icon, Python, YAML and YATL Benoit Cerrina
- Re: Generators -- Icon, Python, YAML and YATL Dan Sugalski
- Re: Generators -- Icon, Python, YAML and ... Benoit Cerrina
- Re: Generators -- Icon, Python, YAML... Dan Sugalski
- Re: Generators -- Icon, Python, YAML and YATL Dan Sugalski