How to return a const handle (view) to a mutable member of an agregate

ParticlePeter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 13 13:39:38 PDT 2016


On Sunday, 13 March 2016 at 20:28:33 UTC, JR wrote:
> On Sunday, 13 March 2016 at 20:13:03 UTC, Basile B. wrote:
>> On Sunday, 13 March 2016 at 20:10:57 UTC, Basile B. wrote:
>>> [...]
>
> Basile beat me to it. Yes, ref const(Array!T) accessor.
>
> http://dpaste.dzfl.pl/cb2bc5cf9917

Thank you very much, both of you. JR, that's excellent 
(additional) information :-) but my struct is not supposed to 
work as array, "wrapper" was a wrong expression.
ref const(Array!T) accessor() will still do :-)


More information about the Digitalmars-d-learn mailing list