Equivalent of Python yield

71 views
Skip to first unread message

Eric Lendvai

unread,
Sep 28, 2023, 2:25:59 PM9/28/23
to Harbour Developers
Besides the standard "return" command, Python has the concept of "yield".


I think this could be created with the use of static variables, but I just wonder if it is possible to create a native implementation of the yield command?

This will allow us to create "generator" functions easily.

Just trying to get good ideas from other languages :)

Eric
Reply all
Reply to author
Forward
0 new messages