[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: AW: referencing table elements within the same table constructor
- From: "Warlich, Christof" <christof.warlich@...>
- Date: Thu, 10 Jun 2010 15:55:27 +0100
> 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?