https://issues.dlang.org/show_bug.cgi?id=16131

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Steven Schveighoffer <[email protected]> ---
(In reply to Eyal from comment #3)

>         fib = new Fiber(&run);

This is your problem. This stores a context pointer to 'this', which may
change.

In general, it's a bad idea to use delegates to structs unless you know they
won't move (e.g. part of a heap allocation).

Ketmar is right that it's perfectly valid to memcpy a struct in D. You have to
expect that.

--

Reply via email to