Time to kill T() as (sometimes) working T.init alias ?

Mehrdad wfunction at hotmail.com
Thu Nov 29 02:41:45 PST 2012


On Thursday, 29 November 2012 at 05:31:13 UTC, Jonathan M Davis 
wrote:
> <snip>


I'm just not understanding the whole "the default construction of 
a struct should be a compile time creature, not a runtime one".



Don't you have to initialize the struct with zero's either way?

So either way, you're going to have to initialize it... so no 
perf increase in any way. Why prevent the user from 
default-initializing it the way he wants to?


More information about the Digitalmars-d mailing list