Tuple indexing and slicing
bearophile
bearophileHUGS at lycos.com
Wed Jul 10 16:19:29 PDT 2013
Timothee Cour:
> Why not support Tuple indexing and slicing with [] syntax?
You need a syntax like:
a.slice!(1, 3);
I don't know why Walter didn't add support for a slicing syntax
for tuples. But it's an additive change, so it's not too much
late to add it, if it's feasible.
If D will grow built-in tuples (that currently is among my top
enhancement requests for D), probably the slice syntax will be
supported.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list