oop tutorials

Christopher Wright dhasenan at gmail.com
Tue Mar 4 15:41:46 PST 2008

Saaa wrote:
>> What is Class doesn't have a default constructor, or has many?
> What is the difference between `first only having a reference and then 
> allocating` or `direct allocation` in those two cases?
> Or can't the instance be allocated in those cases?
> If they can't then what is the use of having only a reference to them? 

Interesting. I suppose there's no real reason, just inertia from C++. 
And the Principle of Least Surprise implies that potentially incurring a 
large cost with zero lines of code is a bad thing.

More information about the Digitalmars-d-learn mailing list