Warning on self assignment
Nordlöw
per.nordlow at gmail.com
Wed Apr 25 10:37:36 UTC 2018
On Wednesday, 25 April 2018 at 03:32:09 UTC, Meta wrote:
> 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).
Thanks
More information about the Digitalmars-d-learn
mailing list