.NET introduces Span<T>, basically D slices

Rumbu rumbu at rumbu.ro
Sun Nov 19 14:46:32 UTC 2017


On Sunday, 19 November 2017 at 02:16:36 UTC, Luís Marques wrote:
> https://github.com/dotnet/corefxlab/blob/master/docs/specs/span.md
>
> Seems like D wisdom is creeping in. For instance, the Data 
> Pipelines section basically explains why ranges/slices and 
> algorithms are nice and relevant: 
> <https://github.com/dotnet/corefxlab/blob/master/docs/specs/span.md#data-pipelines>

Sorry to disappoint, but Span<T> is something else. The .net 
equivalent of D slices is in fact the not so popular 
ArraySegment<T> available in .net since 2008.

Span<T> will allow access to unmanaged and stack memory in the 
same way as using a standard array.


More information about the Digitalmars-d mailing list