At 03:47 AM 12/31/2001 -0500, Clark C . Evans wrote:
>It seems that the Python people have figured a simple way to
>implement generators.
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
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk
Thread Previous
|
Thread Next