Jump to content




Advanced Lua Topics - Coroutines


25 replies to this topic

#21 vargaszm

  • Members
  • 38 posts

Posted 01 June 2014 - 02:19 AM

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.

#22 Alice

  • Members
  • 429 posts
  • LocationBehind you.

Posted 06 June 2014 - 03:33 AM

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


#23 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 06 June 2014 - 03:41 AM

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.

#24 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 08 June 2014 - 10:00 PM

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.

#25 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 09 June 2014 - 12:32 AM

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.

#26 Waitdev_

  • Members
  • 432 posts
  • LocationWherever you want me to be

Posted 30 May 2015 - 09:20 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users