using .init reliably

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 26 08:14:42 PDT 2016


On 8/26/16 6:52 AM, Cauterite wrote:
> On Friday, 26 August 2016 at 09:48:00 UTC, Jonathan M Davis wrote:
>> And I expect that it will become an error at some point in the future
>> to define an init member for a user-defined type, at which point,
>> there won't be any choice about fixing it.
>
> I might take a crack at this patch. Sounds pretty trivial.
>
>
FYI, you cannot make this patch until we fully deprecate the use of 
TypeInfo.init: 
https://github.com/dlang/druntime/blob/master/src/object.d#L294

So at least until 2.075.

-Steve


More information about the Digitalmars-d-learn mailing list