Tuple opAssign type deduction
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Dec 23 17:10:49 PST 2014
On Wed, 24 Dec 2014 01:00:08 +0000
bearophile via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> > i guess that this was simply overlooked, so i think that you
> > can create ER for this.
>
> Often tuple fields have different types, like a string and int.
sure, but then you can't initialize it from an array either. yet we
have convient initializer for "convertable" arrays and have no
`opAssign` for the same.
> And better to stop and wait for built-in tuple syntax instead of
> messing up more and more the Phobos tuples. The rabbit hole is
> deep enough already.
built-in tuple syntax may not arrive for another two years. or five.
or... ;-) adding `opAssign` for arrays is just a convience feature: as
we have ctor for this operation, it would be logical to have `opAssign`
for it too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141224/4ca769f9/attachment.sig>
More information about the Digitalmars-d
mailing list