The purpose of D (GC rant, long)

Walter Bright newshound at digitalmars.com
Mon Oct 30 08:27:13 PST 2006


Sean Kelly wrote:
> Walter Bright wrote:
>> Sean Kelly wrote:
>>>  but D can
>>> really do everything C++ can here, unless you absolutely insist on 
>>> having user-defined data types that are indistinguishable from 
>>> built-in types.
>>
>> C++ is not capable of having user-defined types indistinguishable from 
>> built-in ones.
> 
> How so?  It can certainly get pretty close, but I'm unaware of the 
> limitations.

Consider std::string. It cannot deal with "string1"+"string2". 
std::vector<> cannot be statically initialized. There's no way to create 
user-defined literals. Etc.



More information about the Digitalmars-d mailing list