Congratulations to the D Team!
Timon Gehr
timon.gehr at gmx.ch
Mon Jul 9 04:44:24 PDT 2012
On 07/09/2012 08:37 AM, Adam Wilson wrote:
> Object is now const-correct throughout D. This has been a dream for many
> of you. Today it is a reality.
PITA. Forced const can severely harm a code base that wants to be
flexible -- it leaks implementation details and is infectuous.
Any options planned to allow not inheriting all the cruft from Object if
it is of no use?
Eg:
// object.di
class RawObject { }
class Object : RawObject { ... }
// user.d
class C { } // inherits from Object
class D : RawObject { } // this does not
More information about the Digitalmars-d
mailing list