Can we drop static struct initializers?

Bill Baxter wbaxter at gmail.com
Fri Nov 20 16:11:18 PST 2009


On Fri, Nov 20, 2009 at 4:05 PM, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Bill Baxter wrote:
>>
>> Right, but if you do define it (in order to do something extra upon
>> initialization -- validate inputs or what have you) then it no longer
>> works at compile time.
>
> Right, but the static initialization then shouldn't work, either.

Why not?  It works if you use static opCall(int,int) instead of this(int,int).

--bb



More information about the Digitalmars-d mailing list