On Apr 11, 2007, at 8:11 AM, Daniel Stenning wrote:

> a) because it loses the typing information - it is generic for all  
> objects.
> This adds to tedium as one has to apply lots of casting.
>
> b) the amount of coding involved to create and deal with this object.
>
> A much better solution would have been to use "Weak" instead of Dim in
> source code, and for properties to have a checkbox named "weak",  
> making all
> the mechanics of handling weak references internal.

I agree ... but that would be a more basic change to the language  
likely have required more complier changes and be a bigger  
project ... which means it might not have happened for a long while  
and it is still useful as is.

Having the class does not mean your better solution can't happen in  
the future (though i agree it make it less likely RS will implement it)

As to point a), with tree structures all the nodes  are usually of  
the same type so one could subclass WeakRef to do the casting which  
gets rid of much of the tedium, no?

- Karen
_______________________________________________
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