AW: referencing table elements within the same table constructor
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: AW: referencing table elements within the same table constructor
- From: "Warlich, Christof" <christof.warlich@...>
- Date: 2010年6月10日 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?
Cheers,
Christof