Ranges
Salih Dincer
salihdb at hotmail.com
Sat Aug 6 16:30:55 UTC 2022
On Saturday, 6 August 2022 at 15:37:32 UTC, pascal111 wrote:
> On Friday, 5 August 2022 at 04:05:08 UTC, Salih Dincer wrote:
>> On Thursday, 4 August 2022 at 22:54:42 UTC, pascal111 wrote:
>>>
>>> I didn't notice that all what we needs to pop a range forward
>>> is just a slice, yes, we don't need variable here.
>>
>> Ranges and Slices are not the same thing. Slicing an array is
>> easy. This is a language possibility. For example, you need an
>> incrementing variable for the Fibonacci Series.
>>
>> SDB at 79
>
> What!!! so where's ranges?! I thought slices of any array are
> ranges, and understood it like that, and also there's no data
> type called ranges, it's like if you are talking about Ghostly
> data type!
Well, that's very normal. Because as you work with ranges, you
will understand better. Indeed, the slices (we can call it a
dynamic array) feel like slice, don't they?
SDB at 79
More information about the Digitalmars-d-learn
mailing list