On Feb 15, 2007, at 5:01 PM, Guyren Howe wrote:

As an aside, don't be afraid to make a dictionary subclass, in which the lookup returns the exact type you're looking for, so you don't have to keep casting the damn variants all the time.

This is a REALLY good idea. I can't believe that didn't occur to me. I've been doing some complex data structures that are essentially dictionaries inside dictionaries inside an array... and the recasting required is quite yucky!

I shall have to explore this!


Marc Zeedar
Publisher, REALbasic Developer magazine
www.rbdeveloper.com


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to