On Thursday, 28 June 2018 at 09:47:07 UTC, Jonathan M Davis wrote:
On Thursday, June 28, 2018 09:26:10 Flaze07 via
Digitalmars-d-learn wrote:
On Thursday, 28 June 2018 at 08:52:33 UTC, Simen Kjærås wrote:
> [...]
what about during runtime ?
Ranges in general have an arbitrary length, whereas tuples have
a fixed length that is known at compile time. So, it really
doesn't make sense to convert a range to a tuple. You can
create function that takes the first x number of elements of a
range (probably throwing if the range is too short) and create
a tuple from those elements, but it would be a bit of a pain to
do, and it would generally be a pretty weird thing to do. A
dynamic array would make a lot more sense than a tuple.
- Jonathan M Davis
ok gotcha