develooper Front page | perl.perl6.internals | Postings from December 2001

Re: Generators -- Icon, Python, YAML and YATL

Thread Previous | Thread Next
From:
Benoit Cerrina
Date:
December 31, 2001 07:07
Subject:
Re: Generators -- Icon, Python, YAML and YATL
Message ID:
011c01c1920c$f181e810$0a00000a@benoitwqc2128s
>
> 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


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About