lua:sharedtable
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
lua:sharedtable [2015/09/28 13:16] – vodur | lua:sharedtable [2015/09/28 16:36] (current) – vodur | ||
---|---|---|---|
Line 128: | Line 128: | ||
==== Sharing with different prog types ==== | ==== Sharing with different prog types ==== | ||
- | All prog types have access to ' | + | All prog types have access to ' |
One strategy to overcome this limitation is to keep all the shared code in an aprog and load it from the different prog types accordingly: | One strategy to overcome this limitation is to keep all the shared code in an aprog and load it from the different prog types accordingly: | ||
Line 175: | Line 175: | ||
</ | </ | ||
- | Using ' | + | Using '**[[: |
<code lua> | <code lua> | ||
-- helpers_example.lua, | -- helpers_example.lua, |
lua/sharedtable.1443446176.txt.gz · Last modified: 2015/09/28 13:16 by vodur