Challenge: write a reference counted slice that works as much as possible like a built-in slice

deadalnix deadalnix at gmail.com
Fri Nov 12 17:14:19 UTC 2021


On Thursday, 11 November 2021 at 23:17:53 UTC, Andrei 
Alexandrescu wrote:
> Walter would argue that his work on scope makes that possible 
> too. The short of it is getting an answer to "can it be done" 
> is important in and of itself because it gives us hints on what 
> needs to be done.
>

But it cannot be done. This because scope do not compose, so as 
soon as there is one indirection, all information is gone.



More information about the Digitalmars-d mailing list