Constructors (starstruck noob from C++)
spir
denis.spir at gmail.com
Fri Jan 21 06:33:15 PST 2011
On 01/21/2011 01:29 PM, bearophile wrote:
> spir:
>
>>> It's a shame we can't use .dup. It would look really nice in code.
>>
>> +++
>
> Copying classes is not a so common need in D. As an example, I need a
byPair() method for AAs more than dup for classes :-)
>
> Bye,
> bearophile
Sure, but when you need it, you very pleased to find it. And as already
noted, this thread shows how non-obviously it is to define.
By the way, I like & support you request for byPair; but then, let's
have it for all arrays (keys beeing indices). (D Lua-isation ;-)
Denis
_________________
vita es estrany
spir.wikidot.com
More information about the Digitalmars-d
mailing list