On 2/6/13 10:51 AM, "Om" <bigosma...@gmail.com> wrote:


> 
> But we can still do:
> 
> instance["overloadedFunctionName"](obj)
> 
> where obj is of type Object.
> 
> Today, the compiler does not care about this call.  Would -stricterthanhell
> option catch this?
> 
> Om
I think it would have to.  But that example is easy compared to:

    var foo:String;
    instance[foo]();

No way to know that foo will really be.

It looks like overloading may have to go hand-in-hand with function typing
if we want to take the C++ approach to overloading.

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to