After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661132 - Enhanced Slicing Syntax
Enhanced Slicing Syntax
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Arrays
unspecified
Other Linux
: Normal enhancement
: 1.2
Assigned To: Michael 'Mickey' Lauer
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-06 21:52 UTC by Peng Huang
Modified: 2018-05-22 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support more slice expressions (1.36 KB, patch)
2012-04-18 19:39 UTC, Simon Werbeck
none Details | Review

Description Peng Huang 2011-10-06 21:52:26 UTC
I wish vala can support below slicing operations.

array[begin:] => array[begin: array.length]
array[:end] => array[0:end]
array[:] => array[0:array.length]
Comment 1 Simon Werbeck 2012-04-18 19:39:55 UTC
Created attachment 212311 [details] [review]
Support more slice expressions
Comment 2 Michael 'Mickey' Lauer 2018-02-26 15:40:55 UTC
I would love to get this syntax supported in Vala. For consistency, it needs to work with string as well though. In order to get a 1.0, I think we should postpone all – even tiny – syntax changes though, hence let's discuss this for 1.2. (We need to come up with a sane way for enhancement proposals post 1.0 anyways, but that's probably a discussion for the mailing list).
Comment 3 GNOME Infrastructure Team 2018-05-22 14:11:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/238.