Non movable structs

Adrian Matoga via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 19 02:37:08 PDT 2016


On Sunday, 19 June 2016 at 02:06:59 UTC, deadalnix wrote:
> Long story short, I need structs that do not move. I'm sure 
> there are many other use cases.

I needed that for a struct member function to be passed as 
delegate for a fiber.
The easiest way I found was to malloc the struct.



More information about the Digitalmars-d mailing list