Destroying structs (literally)

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 28 20:32:43 PDT 2014


On 8/28/14, 8:07 PM, Jonathan M Davis wrote:
> Since this is in the library, not the compiler, I'm not sure how you'd
> do that (have the compiler specific a version identifier for it?), but
> considering how broken the behavior was before and that we don't
> normally provide flags to revert changes in behavior, I'd argue that
> anyone who has problems with it should just use the previous version of
> the compiler until they're ready to update their code.

I'd say the impact is too large to leave things at that. How about a 
function call callStructDestructorsDuringGC(bool) - yes, that long - 
that people can place in main() if they're having trouble?

Andrei



More information about the Digitalmars-d mailing list