On Sunday, 1 March 2015 at 17:48:15 UTC, Marc Schütz wrote:
See:
http://forum.dlang.org/post/[email protected]
...and:
http://forum.dlang.org/post/[email protected]

That's not applicable here though. The compiler doesn't know we're doing reference counting, so it cannot insert AddRef/Release calls.

Maybe the compiler can detect a split-pass and insert the appropriate calls to the correlate opAdd/opRelease functions for structs according to the same rules as for classes. Isn't split-passing a rare business in general?

Reply via email to