[Info-vax] Simple Pascal question

Arne Vajhøj arne at vajhoej.dk
Thu Sep 5 13:30:44 EDT 2024


On 8/6/2024 7:57 PM, Arne Vajhøj wrote:
> On 8/5/2024 8:34 AM, Michael S wrote:
>> On Sun, 4 Aug 2024 21:00:35 -0400
>>> C# Span is similar to slices. But C# Span and C# array are far from
>>> the same.
>>
>> Pay attention that despite being designed (or at least brought to
>> public) in this century, C# originally lacked slices.
>> They were added relatively recently, in v. 8.0, and referred in c# docs
>> as "Indices and ranges".
> 
> I thought it was C# 7.2.

Let me correct myself.

Span was 7.2, but range was 8.0.

Span is a "view slice" similar to slice in some of the newer
native languages.

Range is a "copy slice".

Arne



More information about the Info-vax mailing list