User Tools

Site Tools


programming:pico8:recipes:coroutine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:pico8:recipes:coroutine [2022-02-17 03:20] – integrate feedback from Lexaloffle BBS zlgprogramming:pico8:recipes:coroutine [2022-02-21 00:40] (current) – zut alor, I missed one! zlg
Line 84: Line 84:
 </code> </code>
  
-The above code doesn't account for coroutines that may accept arguments, which will need to differentiate between a coroutine entry in ''corlist'' that is a table (i.e. it's accepting arguments) or a function (just a plain coroutine). This requires modifying ''corhandler'' considerably:+The above code doesn't account for coroutines that may accept arguments, which will need to differentiate between a coroutine entry in ''corlist'' that is a table (i.e. it's accepting arguments) or a function (just a plain coroutine). This requires modifying ''update_cors'' considerably:
  
 <code lua> <code lua>
programming/pico8/recipes/coroutine.1645068023.txt.gz · Last modified: 2022-02-17 03:20 by zlg