Another task

Simen kjaeraas simen.kjaras at gmail.com
Thu Jan 20 11:05:39 PST 2011


bearophile <bearophileHUGS at lycos.com> wrote:

>> I think for a newcomer the most difficult part is related to tuples:
>> * find them (in std.typecons!!!)
>> * catch after much time, pains, research, they should not even try to
>> construct a tuple using Tuple!, but using the convenience tuple() func
>> instead.
>
> I agree that like dynamic arrays, tuples are better as built-ins, in D  
> too. Another very useful thing is tuple unpacking syntax:
> http://d.puremagic.com/issues/show_bug.cgi?id=4579

And if not necessarily being built-ins, they are useful enough to warrant
inclusion in object.d rather than std.typecons.

-- 
Simen


More information about the Digitalmars-d mailing list