←  Tutorials

ComputerCraft | Programmable Computers for Minecraft

»

Advanced Lua Topics - Coroutines

vargaszm's Photo vargaszm 01 Jun 2014

I am very confused, mostly because this tutorial got me thinking i might actually be able to understand. im not there yet, but the door's open.

that's a compliment. I was confused becuase i actually tried. i didnt before. w00t to you.
Quote

Alice's Photo Alice 06 Jun 2014

Just poking around the forums, I'm pretty sure that this is the tutorial that helped me rewrite my parallel API for vanilla Lua ( which probably looks like the CC one ).
Anyways, I believe a thanks are in order for helping me understand more about how coroutines work in Lua.

And, for those who want it...
API
Quote

theoriginalbit's Photo theoriginalbit 06 Jun 2014

View PostDeath, on 06 June 2014 - 03:33 AM, said:

-snip-
Unfortunately that code wouldn't work. you're missing one of your functions, and its also lacking in the ability for the coroutines to receive events.
Quote

Geforce Fan's Photo Geforce Fan 08 Jun 2014

This is a good tutorial. Wish I'd looked at it before starting coroutines. I had to use the lua manual and a lot of ask a pro.
Quote

theoriginalbit's Photo theoriginalbit 09 Jun 2014

View PostGeforce Fan, on 08 June 2014 - 10:00 PM, said:

This is a good tutorial. Wish I'd looked at it before starting coroutines. I had to use the lua manual and a lot of ask a pro.
I did tell you to read it here.
Quote

Waitdev_'s Photo Waitdev_ 30 May 2015

i get a little confused with when i use read(), but i thought my way around it.
Quote