www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DIP85: Lazy Initialization of const Members

reply Marc =?UTF-8?B?U2Now7x0eg==?= <schuetzm gmx.net> writes:
http://wiki.dlang.org/DIP85

This DIP proposes an officially sanctioned way to initialize 
const members (or mutable members of const structs) lazily by 
allowing limited mutation of const objects.

Destroy!
Nov 14 2015
parent Marc =?UTF-8?B?U2Now7x0eg==?= <schuetzm gmx.net> writes:
On Saturday, 14 November 2015 at 14:30:33 UTC, Marc Sch├╝tz wrote:
 http://wiki.dlang.org/DIP85

 This DIP proposes an officially sanctioned way to initialize 
 const members (or mutable members of const structs) lazily by 
 allowing limited mutation of const objects.

 Destroy!
I'm just right now reading Andrei's post on persistent lists, and I realize it can be even more useful if it supports immutable objects. I made some modifications to allow that.
Nov 14 2015