On Sat, 03 Jan 2015 16:40:14 +1030 ted via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
> I'm now taking the view that const is there for the compiler to optimise > code on the basis that nothing can alter it once set (and can only be set > on initialisation). So I see your point that it would not be used very > often in general defensive code - better to provide access restrictions > (getters) for most cases. exactly! ;-) > thanks again, you're welcome. hope you will keep enjoying D, it's great. ;-)
signature.asc
Description: PGP signature