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

Steven Schveighoffer <schvei...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schvei...@yahoo.com

--- Comment #5 from Steven Schveighoffer <schvei...@yahoo.com> ---
(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