ref returns and properties

Daniel Keep daniel.keep.lists at gmail.com
Mon Jan 26 07:52:35 PST 2009



Sean Kelly wrote:
> Daniel Keep wrote:
>> Andrei Alexandrescu wrote:
>>> Denis Koroskin wrote:
>>>> [snip]
>>>>
>>>> get/set/free?
>>> With these you can't move a resource inside the property.
>>>
>>> Andrei
>>
>> Python has an overload for removing properties.  In all my years of
>> using Python, I've *NEVER* once had a use for it, or even worked out why
>> I'd want to use it.
>>
>> I'm not saying we shouldn't be able to do this, I just can't see the
>> need for move/remove for properties; where would this be useful?
> 
> Does Python have complex value types?
> 
> 
> Sean

You mean these?

>>> (1+2j) * (2+3j)
(-4+7j)

Don't ask me why they used 'j' instead of 'i'.  :P

If you mean aggregate types that have value semantics, then no.

  -- Daniel



More information about the Digitalmars-d mailing list