Release D 2.094.0

Imperatorn johan_forsberg_86 at hotmail.com
Fri Oct 2 13:55:00 UTC 2020


On Thursday, 1 October 2020 at 09:49:36 UTC, Mathias LANG wrote:
> On Thursday, 1 October 2020 at 07:02:12 UTC, Imperatorn wrote:
>> On Sunday, 27 September 2020 at 19:20:34 UTC, Daniel N wrote:
>>> On Saturday, 26 September 2020 at 22:12:17 UTC, Imperatorn 
>>> wrote:
>>>> [...]
>>>
>>> Yay! "-preview=in" is beyond epic!
>>
>> I like epic things. What does it do? :D
>
> Author here. The most complete way to know would be to read the 
> changelog: https://dlang.org/changelog/2.094.0.html#preview-in
> The TL;DR is that, in addition to `const scope`, `in` now 
> automatically behaves as `ref` when "it makes sense" such as 
> large value types or presence of destructors / postblit (more 
> details in the changelog!) and will accept rvalues, unlike 
> other ref parameters.

Thanks for the clarification


More information about the Digitalmars-d-announce mailing list