classes allocated on the stack
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Thu Apr 24 09:56:24 PDT 2008
Steven Schveighoffer wrote:
> * use new with no arguments
[snip]
> Why does rule 3 exist? If I have a class:
[snip]
>
> What about using the constructor with parameters makes it not possible to
> store on the stack?
"New with arguments" != "constructor with parameters". I think you
missed this part of the spec:
<http://www.digitalmars.com/d/1.0/class.html#ClassAllocator>
More information about the Digitalmars-d-learn
mailing list