On 5/24/2011 10:01 PM, Jacob Carlborg wrote:
The reason for the aliases is this:
class A {
void foo (int i);
}
class B : A {
void foo ();
}
To be able to call A.foo(int) from B you need to add an alias to it. In
D, unlike in Java, the methods in A and B will be in two different
overload sets.
Have a look at:
http://www.digitalmars.com/d/2.0/function.html#function-inheritance
Read the second and third examples.
>the methods in A and B will be in two different overload sets.
Thanks, I will look into it.
I think when it comes to memory only java class can be port over to D
easier... Not too sure about the other like file/network, NIO and others.
I suppose I need to dig into the dsource site to see if there is any
similar replacement for java's library X.
--
Matthew Ong
email: on...@yahoo.com