Struct default constructor - need some kind of solution for C++ interop
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 11 05:11:43 PDT 2016
On Sunday, 11 September 2016 at 11:33:14 UTC, Dicebot wrote:
> On Sunday, 11 September 2016 at 08:37:56 UTC, deadalnix wrote:
>> On Sunday, 11 September 2016 at 06:09:01 UTC, Dicebot wrote:
>>> Presence of compile-time valid T.init for any type T is
>>> absolutely critical for generic programming and must not be
>>> compromised.
>>
>> WAT ?
>
> Vast amount of traits operate on is(typeof(do stuff with
> T.init)) - all of them will return false negative for types
> with init disabled.
That's confusing an arbitrary implementation with necessity.
lvalueOf!T/rvalueOf!T would be more than enough for these traits.
— David
More information about the Digitalmars-d
mailing list