Bug 14637 – Array operations should work on tuples
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-31T23:17:04Z
Last change time
2018-04-04T12:30:05Z
Keywords
preapproved, pull
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2015-05-31T23:17:04Z
For example:
tuple ~ tuple
should produce a tuple with the contents of both.
Comment #1 by andrei — 2015-05-31T23:18:36Z
We should also support tuple ~ value and value ~ tuple. Obviously the ~= operation cant' work :o).
Comment #2 by k.hara.pg — 2015-06-01T00:09:13Z
(In reply to Walter Bright from comment #0)
> For example:
>
> tuple ~ tuple
>
> should produce a tuple with the contents of both.
(In reply to Andrei Alexandrescu from comment #1)
> We should also support tuple ~ value and value ~ tuple. Obviously the ~=
> operation cant' work :o).
Do you mean the concatenation of std.typecons.Tuple? If so, it's a Phobos issue.