May 21, 2009

infoof

Here's a fun and accessible language design post from Eric Lippert, who's on the C# team at Microsoft:

OK smart guy, what about this strangely familiar case?
class C<T>
{ 
  public void Bar(int x, T y) {}
  public void Bar(T x, int y) {} 
  public void Bar(int x, int y) {}
}
class D : C
{ ...

Heh heh heh.

Labels:

This page is powered by Blogger. Isn't yours?