[Tutor] detecting data member changes
Kent Johnson
kent37 at tds.net
Tue Apr 24 18:35:23 CEST 2007
Luke Paireepinart wrote:
> I can see how some people might be surprised to know that changing
> classinstance.leds automagically sends a communication packet to the wii
> remote without their knowledge, but if they're aware of the side-effect,
> it seems to be a more elegant way of doing things to me (with properties
> vs. an explicit method), at least in this case.
I think so.
>>> Or is it really up to me on how I want to implement it?
>>
>> Of course, it's your code, right?
> Yes, but it's code I plan on open-sourcing, so I'm trying to make it
> clear what's happening in case I get other developers to help in the
> future.
Using properties in this way is accepted practice.
Kent
More information about the Tutor
mailing list