[nem-en] casts

Ivan Lakhturov lakhturov at gmail.com
Sat Dec 16 21:06:41 CET 2006


Hello devel-en,

  ok, casts are working as casts (for outside) now

  and i checked some things...

  so, let's proceed with the next simple question



  public class A {}
  public class B : A
  {
    public static @:>(_ : A) : B
    {
      B()
    }
  }


  
      def a = A();
      def b : B = a :> B;

  should it be allowed or not? how d'you think, guys?
  (c# prohibits overloading upcasts in B)

regards, phantom




More information about the devel-en mailing list