Hi Max, See the Generator package in http://source.lukas-renggli.ch/continuations. IMHO, generators are pretty useless in Smalltalk though. Lukas On 13 July 2011 10:14, Max Leske <maxleske@gmail.com> wrote:
Hi folks I've been reading a bit about Python generators and I think they're awesome. So I quickly looked for a Smalltalk implementation and found that GNU Smalltalk has one (http://smalltalk.gnu.org/blog/bonzinip/fun-generators). Now, I was wondering if there's an implementation for Pharo / Squeak (since I didn't find one on SqueakSource) and if not, if there might be any interest in one. If you're curious you should take a look at these:
Generator Tricks for Systems Programmers - Version 2.0 A Curious Course on Coroutines and Concurrency http://www.dabeaz.com/generators-uk/GeneratorsUK.pdf
Cheers, Max
-- Lukas Renggli www.lukas-renggli.ch