Your example is one reason why Variant use is so "icky" and inelegant imo.
if there could be some type-safe way of enhancing the language - to make the
use of variants totally unnecessary I would be happy.

Something like "templates" or "generics" maybe ?    ;)



On 22/8/06 19:14, "Phil M" <[EMAIL PROTECTED]> wrote:

> It would be nice to allow overloading of return parameters, but I
> have a feeling that that would result in far more ambiguous code; for
> example which function should be called with the following?
> 
>      Dim v As Variant = get("piff")    // Integer or String function????


_______________________________________________
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