Virtual extension methods -- a strawman design
Howard Lovatt
howard.lovatt at gmail.com
Mon May 24 19:08:19 PDT 2010
The loader adds m when the class loads, therefore it exists. If m is
ambiguous the added method throws an exception.
On Tuesday, May 25, 2010, Neal Gafter <neal at gafter.com> wrote:
> On Mon, May 24, 2010 at 3:48 PM, Howard Lovatt <howard.lovatt at gmail.com> wrote:
>
>
>
> If you recompile AB then you get an error. If you don't recompile AB
> and call m then you get an Exception. As I said, this is reasonable
> behaviour and so is a load error, i.e. either option fine by me.
>
> If you don't recompile AB, then AB contains no invocation of m. So there is no error.
>
>
--
-- Howard.
More information about the lambda-dev
mailing list