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


Reply via email to