On Jan 10, 2007, at 23:13 UTC, [EMAIL PROTECTED] wrote:

>    I'd like to be able to do the equivalent of:
> 
>     dim theSizeOfMe = sizeof (self)

There is no way to do that that I can think of.

> The reason is that I'm trying to prevent a class of bugs where I fail 
> to update all the code required to save, restore (or transmit & 
> receive) an object.

Hmm, that's a tough one.  The closest I can think of at the moment is
to have a private constant on the class, which you increment whenever
you add/remove/change a property.  Then, you can put your assertion in
each method that cares about such changes, and it'll tell you if you've
missed any.

HTH,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to