[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]ECMA doubt .. function overloading

From: Rhys Weatherley
Subject: Re: [DotGNU]ECMA doubt .. function overloading
Date: Sat, 09 Nov 2002 07:27:08 +1000

Gopal V wrote:

> Still waiting for Rhys to respond,

Rhys wakes up and finds a full-blown ECMA spec interpretation
war going on in his mailbox ... :-)

The relevant section is " Method invocations".

    If N is applicable with respect to A (, then all
    methods declared in a base type of T are removed from the set.

That's the missing piece of the puzzle.  When the compiler sees
the applicable "Foo(float)" member in "Child", it is supposed to
erase all methods in "Parent", regardless of whether they may
be better or not.

Personally, I think the current cscc behaviour is closer to
what the programmer intended, but the spec is the spec, so I'll
have a look at fixing this after I fully wake up.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]