Creating structs
Simen Haugen
simen at norstat.no
Fri Feb 2 06:52:14 PST 2007
Frits van Bommel Wrote:
> It *is* a new struct each time:
(...)
> But after each iteration of the loop, the struct used is destroyed, and
> the most convenient place to put the next one happens to be the same
> place as the most convenient place to put the last one...
I see. I stored the pointer in another array, so I thought it wouldn't go out of scope. I guess this only works for object allocated on the heap...?
More information about the Digitalmars-d-learn
mailing list