defered new feature

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 23 12:18:31 PDT 2008


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).

> Ok, then morph the idea to allow "the constructor call syntax" to do the 
> above.

Then we're pretty much down to functions :o).


Andrei




More information about the Digitalmars-d mailing list