initializing const(Date)

cal callumenator at gmail.com
Tue Mar 19 10:14:01 PDT 2013


On Tuesday, 19 March 2013 at 17:04:01 UTC, cal wrote:
> On Tuesday, 19 March 2013 at 16:35:22 UTC, Dan wrote:
>> This used to work but now in 2.062 it causes ctfe error.
>> Any suggested workaround?
>
> This seems to work:

Or:
const(Date) DefaultDate = { return Date(1929,10,10); }();
although this is getting cryptic.


More information about the Digitalmars-d-learn mailing list