partial class
KennyTM~
kennytm at gmail.com
Fri Oct 31 07:53:45 PDT 2008
Mike James wrote:
> Not sure if this has been suggested before as an addition to D but what about introducing a partial class as per C# - with all the benefits it would bring...
>
> -=mike=-
I like uniform function calling syntax (a.method(x) <=> method(a, x))
more, which addresses some syntactical benefits of partial class. But
you can't have virtual inheritance, extra members, and only a few
operators can be overloaded*.
IIRC this suggestion has been raised quite a number of times but are
rejected. I believe it is the difficulty to link classes across
libraries. Note that C# have richer RTTI ability than D because C# is
only compiled to a higher level byte code.
(*: Only opStar (opDeref) can be overloaded for an array as far as I've
tested.)
More information about the Digitalmars-d
mailing list