foreach ref very broken: fails to call front(val)

Timon Gehr timon.gehr at gmx.ch
Tue Jul 10 08:03:59 PDT 2012


On 07/10/2012 05:01 PM, Andrei Alexandrescu wrote:
> On 7/10/12 10:32 AM, kenji hara wrote:
>> OK. I know the past discussion about 'sealed container' so I can agree
>> with your argument.
>> Then I'll close the pull request.
>
> Sounds good for now but let's keep in mind the possibility of
> restricting ref returns. At that point we can "open up" ref returns in
> std.container.
>
> Andrei

Would that apply to all ref returns or would there be an additional
attribute that allows to explicitly restrict them?


More information about the Digitalmars-d mailing list