Why structs and classes instanciations are made differently ?

Houdini via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 25 08:56:45 PDT 2017


On Tuesday, 25 July 2017 at 15:15:59 UTC, Kagamin wrote:

> C++ is big, there's always something you don't know about it. 
> Java actually instantiates classes the C++ way: 
> http://en.cppreference.com/w/cpp/language/new

Yes, but it isn't the default way in C++ to do dynamic 
instanciation. Usually, you do static initialization, except when 
the situation make taht impossible.


More information about the Digitalmars-d-learn mailing list