Here's an itch I have, tho I may be looking at the issue from a wrong point of view.
When I have an array of my object I need to initialize all these indexes. Maybe there's a point in it, but I don't see it. Whenever I create an array of those objects, I want to use them right away so I init all those indexes right from the start anyway. Same with slicing the array to a bigger one, need to initialize the new indexes again.
Note that I don't create time-critical things like games, only apps.
So, I wonder whether this could/may be possible in the future:
Or am I missing something obvious here? :P It would already be quite cool when auto-initializing happens upon slicing.
When I have an array of my object I need to initialize all these indexes. Maybe there's a point in it, but I don't see it. Whenever I create an array of those objects, I want to use them right away so I init all those indexes right from the start anyway. Same with slicing the array to a bigger one, need to initialize the new indexes again.
Note that I don't create time-critical things like games, only apps.
So, I wonder whether this could/may be possible in the future:
Type bla field somefield:int ..and lots and lots of other stuff here End Type local poo:bla[20] poo[3].somefield=5 poo=poo[..40] poo[30].somefield=41
Or am I missing something obvious here? :P It would already be quite cool when auto-initializing happens upon slicing.