That wouldn't work for overloaded methods with multiple parameters, unfortunately
On 6 February 2013 19:51, Om <bigosma...@gmail.com> wrote: > On Wed, Feb 6, 2013 at 10:43 AM, Michael A. Labriola < > labri...@digitalprimates.net> wrote: > > > >Is that really required? Maybe overloading needs to come with a new > > -stricterthanhell option that prevents calling functions against Object. > > >Then I think you wouldn't need that? > > > > It's probably not. At the time I was trying to add features but not > > 'break' anything... hence the reason I was working on that strategy. > > > > Mike > > > > 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 > -- regards, Roland -- Roland Zwaga Senior Consultant | Stack & Heap BVBA +32 (0)486 16 12 62 | rol...@stackandheap.com | http://www.stackandheap.com http://zwaga.blogspot.com http://www.springactionscript.org http://www.as3commons.org