https://issues.dlang.org/show_bug.cgi?id=16381
--- Comment #4 from [email protected] --- (In reply to Bartek Siudeja from comment #3) > True, but: > > My wrapper is a superclass of an abstract storage class, and not all > implementations can return a reference to float4. Another superclass looks > more or less like std.container.Array!bool, so the common interface/base > class can't use ref. I don't suggest you do to do like this. I've added the extra info for the person who'll fix it. The information added by "it works with ref" is that the copy is not valid since any access to ".ptr" leads to an AV. --
