struct and default constructor

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 10 21:41:54 PDT 2014


On 10/10/2014 5:25 PM, Simon A wrote:
> D has native functional purity.  Couldn't you get the same
> benefits that you listed by allowing default constructors but
> requiring them to be pure?

I suspect that CTFE can accomplish most of that today - with the exception that 
CTFE will not allocate runtime memory for you.



More information about the Digitalmars-d mailing list