class variable initialization

NonNull non-null at use.startmail.com
Sat Apr 15 14:05:17 UTC 2023


I want a way to default initialize a class variable to a default 
object (e.g. by wrapping it in a struct, because initialization 
to null cannot be changed directly). Such a default object is of 
course not available at compile time which seems to make this 
impossible. Can this be done in some way?


More information about the Digitalmars-d-learn mailing list