super simple code, super slow to compile
Basile B.
b2.temp at gmx.com
Sun Mar 31 07:53:29 UTC 2019
On Sunday, 31 March 2019 at 07:31:57 UTC, Basile B. wrote:
> On Sunday, 31 March 2019 at 05:37:25 UTC, Basile B. wrote:
>> [...]
>
> Well it's not dmd that does something stupid, it's phobos.
> Typedef default initializer is stored in the type signature.
> init as template param should be void and in this case void
> would be used to set the payload to the actual init. When
> people want real void init they can do them the classic way
> anyway
>
> alias M = Typedef!Matrix; // Typedef!(Matrix, void, null);
> M m = void;
>
> gotta make a PR lol.
Mmmh CTFE doesn't accept uninitialized variables...
To solve the issue the template parameter must be dropped
entirely.
More information about the Digitalmars-d
mailing list