UDA initialize a user defined type attribute field

Adam D. Ruppe destructionator at gmail.com
Tue Feb 18 15:46:27 PST 2014


On Tuesday, 18 February 2014 at 23:43:56 UTC, Arjan wrote:
> But how do I only set the MyAttrib.defaultvalue?

You could do it by adding a constructor to MyAttrib that only 
takes one string and fills it in that way.


More information about the Digitalmars-d-learn mailing list