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

Stanislav Blinov stanislav.blinov at gmail.com
Tue Nov 9 16:57:02 UTC 2021


On Tuesday, 9 November 2021 at 16:30:41 UTC, Timon Gehr wrote:

> It's uniquely bad in the case of @live, as ownership/borrowing 
> of arguments and return values is not actually a property of 
> the function.

Really? I thought @live wasn't unique. I mean, uh:

```
auto ref inout(T) thing(T)(auto ref return scope inout T 
delegate(ref return scope T) nothrow @nogc pure [1] dg...) return 
scope pure @nogc @safe nothrow;
```

'Tis of course off-topic to this discussion, but jeebuz, this has 
to end somewhere!


More information about the Digitalmars-d mailing list