Destroying structs (literally)

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 28 20:51:39 PDT 2014


On Friday, 29 August 2014 at 03:32:45 UTC, Andrei Alexandrescu 
wrote:
> 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?

I'm okay with that, though given that this is almost exclusively 
fixing bugs and isn't particularly likely to create many, I'm not 
at all convinced that it's that big a deal.

- Jonathan M Davis


More information about the Digitalmars-d mailing list