Default initialization for classes

Kirk McDonald kirklin.mcdonald at gmail.com
Sat May 20 14:27:14 PDT 2006


Hasan Aljudy wrote:
> This only works with sturcts. As Oskar said, structs don't need to be 
> newed, they are by value.
> 
> Now that I look at 
> http://www.dsource.org/projects/tutorials/wiki/CurrencyExample
> I see that it's doing it on a class! The code must be borken.
> 

Ah! That would do it. So the way I did it first is the proper way?

-Kirk McDonald



More information about the Digitalmars-d mailing list