Aside from encapsulation doesn't the 'this' scope contain other data as well?

This would make serialising the entire 'this' scope overkill as opposed to serialising your own 'instance' struct.

- tim

Spike spoke the following wise words on 29/09/2003 3:36 PM EST:

Yep,

I use 'this' for stuff that I want to have as public data. Public data is stuff that can be modified from outside the component and tends to break encapsulation, so it is very rare that I use it.

In fact, I don't remember the last time I wrote a component that used the 'this' scope because it encourages lazy shortcuts like directly modifying the data members of the component without going through a method.

Spike



--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to