Back & Forth - Co-routines

Back & Forth - Co-routines

1.205 Lượt nghe
Back & Forth - Co-routines
This video is a follow-up to our recent video on local variables. We claimed we could do Forth local variables in two lines - but we were wrong. It needs only one. The trick that was used involved co-routines. Co-routines are subroutines that kind of behave like a thread. And while they are very difficult to implement in a language like C, they're usually very simple to implement in Forth. The "Local variable" video: https://youtu.be/Y7cax2fDS84 My Forth compiler can be found here: https://sourceforge.net/projects/forth-4th/ You can download it anonymously and for FREE. Most popular platforms are supported - even some old ones.