lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> What you can do here is ensure that these functions are always passed
> the interface table, that is, make that function function(interface)
> and call it so interface.incoming.SET(interface).  This allows for a
> straightforward OOP style.
> steve d.

Can you give an example why this may lead to a better (i.e. OOP) style?
I mean, the table is global, so why is it a good idea to pass it to the function?