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

jmh530 john.michael.hall at gmail.com
Tue Nov 9 15:54:01 UTC 2021


On Tuesday, 9 November 2021 at 15:37:13 UTC, Atila Neves wrote:
> [snip]
>
> The main point of vector is that one can append to it without 
> using the GC. I guess that "this thing has a length only known 
> at runtime that won't change and doesn't use the GC" is useful 
> too, but not nearly as much as being able to append.

Regardless, the limitations of the language and the solutions 
brought up have been discussed on the forums for years. Getting 
some kind of pathway forward is really what is needed. Breaking 
the problem that Andrei brings up into a smaller one, i.e. 
writing a @safe appendable vector that works as much like a 
built-in one, is a useful start.


More information about the Digitalmars-d mailing list