Why to have properties to sort or duplicate arrays ?

Chris Miller chris at dprogramming.com
Sat Jan 27 17:52:44 PST 2007


On Sat, 27 Jan 2007 19:18:32 -0500, Hasan Aljudy <hasan.aljudy at gmail.com>  
wrote:
>>  I think that the property 'dup' should be a method too, because 'dup'  
>> is not a value of my Array object, it does something.
>
> Well, in D, properties are just normal methods.

Except these are magic properties and can't be called like functions, even  
though most of us prefer to call these ones as functions and not  
properties. However, this has been known for along time.



More information about the Digitalmars-d mailing list