[Gambas-user] Would an ArrayList datatype be helpful for gambas users?

Gianluigi gradobag at gradobag.it
Mon Sep 11 10:18:33 CEST 2023


Il 11/09/23 09:53, Gianluigi ha scritto:
> Il 10/09/23 23:03, Fabien Bodard ha scritto:
>> in langage like rust a slice is a kind of special pointer to an array 
>> or any list with 3 coords like arrayref,position, length.
>>
>> dim myarray as array = [...,...,...
>>
>> dim mySlice as Slice = MyArray.Slice(2,23)
>>
>> for each s in MySlice
>> ...
>>
>> I you change value in array then the value change also in the slice 
>> as it is just a pointer to an array part.
>>
>> It can be usefull on string analysis.
>>
>> Fabien Bodard
>>
>
> Hi Fabien,
>
> Thanks for the explanations, now I know something more than the 
> programming :-)
>
> You are always kind
>
> Regards
>
> Gianluigi
>

You made me want to check out Bjarne Stroustrup's book.

Slice is well explained, unfortunately it is 'way' beyond my mental 
capabilities.

Modestly, my ignorance is vast and touches all points :-D

Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230911/35dba92c/attachment.htm>


More information about the User mailing list