Warning on self assignment

Meta jared771 at gmail.com
Wed Apr 25 03:32:09 UTC 2018


On Wednesday, 25 April 2018 at 02:32:32 UTC, Per Nordlöw wrote:
> On Wednesday, 25 April 2018 at 02:23:04 UTC, Mike Franklin 
> wrote:
>> Are people using self assignment of structs as a way of 
>> force-running the postblit?  Is there a valid use case for 
>> that?
>>
>> Mike
>
> If they are, there should be a better way of force-running the 
> postblit.

You can call __postblit or __xpostblit (I think the latter is a 
postblit introduced via a mixin or template mixin).


More information about the Digitalmars-d-learn mailing list