Re: Function to force table to shrink?
bil til <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <CAOnDXmEbb8h-D5prwppDPVhNQSXdDmYqp2iiPT2ZPOsq4kj_wg@mail.gmail.com> |
> For my example I should have added "now the workers see an empty table that they can keep putting work on" But this sounds, as if the "workers" have to inquire this table state very often and regularly. In this case I would typically strongly prefer to present an "element counter variable" for this table, although this adds a small overhead for every key add and key delete (inc/dec this counter... also it might then be better to hide / encapsulate the raw table in a sort of class - so that access only possible by access functions). -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/CAOnDXmEbb8h-D5prwppDPVhNQSXdDmYqp2iiPT2ZPOsq4kj_wg%40mail.gmail.com.