Why D const is annoying

Mehrdad wfunction at hotmail.com
Wed May 2 08:13:43 PDT 2012


Yes, 'const' is part of the interface.

The trouble is that when you make it part of the interface, you're making 
the assumption that **no one** who derives from your class will need mutable 
state.

How can you ever guarantee that? 



More information about the Digitalmars-d mailing list