defered new feature
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Oct 23 13:59:35 PDT 2008
BCS wrote:
> Reply to Andrei,
>
>> BCS wrote:
>>
>>> Reply to Andrei,
>>>
>>>> BCS wrote:
>>>>
>>>>> A number of times I have found my self wanting to have "new
>>>>> C(args)" return a class derived from C. I know this can be done
>>>>> with a static function or the like but syntactically, it's
>>>>> unappealing.
>>>>>
>>>> I'd say the stupid "new" is unappealing.
>>>>
>>>> Andrei
>>>>
>>> So you don't like "new" all together?
>>>
>> I consider it an unnecessary appendage and a waste of two keywords
>> (considering delete too).
>>
>
> You can't dump delete (unless you propose having a delete property)
> because D still allows manual memory management.
It's a function!!!
Andrei
More information about the Digitalmars-d
mailing list